Add hb_static_mutex_t

This commit is contained in:
Behdad Esfahbod 2011-05-05 00:17:43 -04:00
parent 56eb5ad6f9
commit a4b1900913
1 changed files with 8 additions and 0 deletions

View File

@ -100,6 +100,14 @@ typedef volatile int hb_mutex_t;
#endif
struct hb_static_mutex_t : hb_mutex_t
{
hb_static_mutex_t (void) {
hb_mutex_init (*this);
}
};
HB_END_DECLS
#endif /* HB_MUTEX_PRIVATE_HH */