Add hb_static_mutex_t
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 5 May 2011 04:17:43 +0000 (00:17 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 5 May 2011 04:17:43 +0000 (00:17 -0400)
src/hb-mutex-private.hh

index a81d362..f87473d 100644 (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 */