Re: [gtkmm] Mutexes
- From: Paul Davis <paul linuxaudiosystems com>
- To: Daniel Elstner <daniel elstner gmx net>
- Cc: Leandro Fanzone <leandro hasar com>, gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Mutexes
- Date: Thu, 12 Dec 2002 15:52:14 -0500
>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.
bravo.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]