pull/1231/merge
Behdad Esfahbod 6 years ago
parent 210f899aca
commit 60318f8715
  1. 4
      src/hb-mutex.hh

@ -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;
};

Loading…
Cancel
Save