On 05/04/11 20:04, Behdad Esfahbod wrote: > Now, since we are using C++ in HarfBuzz, I wonder if we can use constructors > to initialize the static mutexes automatically?
This little gem seems to do the trick:
struct hb_static_mutex_t : hb_mutex_t
{
hb_static_mutex_t (void) {
hb_mutex_init (this);
}
};
What do you think?
behdad
_______________________________________________
HarfBuzz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/harfbuzz
