From a4b1900913c91aa9db74c4fdfa7c691a5cdf02a8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 5 May 2011 00:17:43 -0400 Subject: [PATCH] Add hb_static_mutex_t --- src/hb-mutex-private.hh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hb-mutex-private.hh b/src/hb-mutex-private.hh index a81d3624d..f87473d31 100644 --- a/src/hb-mutex-private.hh +++ b/src/hb-mutex-private.hh @@ -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 */