[HarfBuzz] [PATCH] Implement threading primitives on Windows; fix compile error and leak

Behdad Esfahbod behdad at behdad.org
Wed May 4 21:23:38 PDT 2011


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



More information about the HarfBuzz mailing list