Re: [gtkmm] Mutexes
- From: Daniel Elstner <daniel elstner gmx net>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: Leandro Fanzone <leandro hasar com>, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Mutexes
- Date: 12 Dec 2002 16:07:54 +0100
Am Don, 2002-12-12 um 15.22 schrieb Paul Davis:
> >The Glib::Mutex classes are to replace gdk_threads_enter/leave? I mean,
> >what mutex should I use to exclude a thread safely with the main GTK
> >message queue?
>
> AFAIK, you have no choice. gdk_threads_enter/leave is the only thing
> you can use. the Glib::Mutex classes are for applications to use for
> their own purposes. they do not replace the mutex system required to
> have multiple threads call glib/gdk/gtk/X functions. there may be a
> wrapper in the GDK namespace.
There isn't. Using gdk_threads_{enter,leave}() is kinda "officially"
discouraged, and we provide Glib::Dispatcher to support the single GUI
thread model.
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]