This commit is contained in:
Behdad Esfahbod 2018-10-09 22:25:53 -04:00
parent 210f899aca
commit 60318f8715
1 changed files with 2 additions and 2 deletions

View File

@ -139,8 +139,8 @@ struct hb_mutex_t
struct hb_lock_t struct hb_lock_t
{ {
hb_lock_t (hb_mutex_t &mutex_) : mutex (mutex_) { mutex.lock (); } inline hb_lock_t (hb_mutex_t &mutex_) : mutex (mutex_) { mutex.lock (); }
~hb_lock_t (void) { mutex.unlock (); } inline ~hb_lock_t (void) { mutex.unlock (); }
private: private:
hb_mutex_t &mutex; hb_mutex_t &mutex;
}; };