Re: glib2 non-static recursive and rw locks?



Alex Graveley <alex ximian com> writes:
> 
> Why are non-static recursive and read-write locks missing from Glib2?!
> 

I always wondered why we have static vs. dynamic, since you can
use any static mutex dynamically as well.

  mutex = g_new (GStaticRecMutex, 1);
  g_static_mutex_init (mutex);

So it would have made more sense to me to just call it GRecMutex and 
had g_rec_mutex_new() as a convenience function that did the above.

Anyway, too late until 2.2.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]