[Gtk-sharp-list] question about threads and g_cond_wait

Michael Hutchinson m.j.hutchinson at gmail.com
Thu Dec 20 18:07:06 EST 2007

On Dec 20, 2007 5:45 PM, Travis Miller <raphtee at gmail.com> wrote:
> I posted this question to the mono-devel list, but this is probably a more
> appropriate place.  the glib c library provides in addtion to the GMutex
> structure, the GCond structure.  One can cause a thread to wait on  a
> condition (or group of threads) by calling g_cond_wait().  Another thread
> can then call g_cond_broadcast() and all threads that are currently blocking
> on that wait will wake up and proceed.  This is something I really need for
> an app that I am writing.

Would System.Threading.WaitHandle do what you need?

> In a related question, in going through monodoc, I see that very little of
> glib is provided.  Is the just a temporary situation?

I suspect it's because a lot of the functionality is already in Mono's
core classlib, so only the things needed to support GTK# were wrapped.
I may be wrong.

Michael Hutchinson

More information about the Gtk-sharp-list mailing list