提交 60318f87 编写于 作者: B Behdad Esfahbod

Minor

上级 210f899a
......@@ -139,8 +139,8 @@ struct hb_mutex_t
struct hb_lock_t
{
hb_lock_t (hb_mutex_t &mutex_) : mutex (mutex_) { mutex.lock (); }
~hb_lock_t (void) { mutex.unlock (); }
inline hb_lock_t (hb_mutex_t &mutex_) : mutex (mutex_) { mutex.lock (); }
inline ~hb_lock_t (void) { mutex.unlock (); }
private:
hb_mutex_t &mutex;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册