struggling with the non-recursive gdk_threads_enter



Dear Devels:

I am having troubles because the GMutex used gdk_threads_enter/leave can
be non-recursive.

I have a piece of code (g_module_check_init) to either be called from an
event dispatched by GDK(if the module is loaded via GtkSettings) or be
called directly without entering the GDK critical section(if the module
is loaded via GTK_MODULE).

The code need to be protected so that its execution is not interrupted
by GDK activities in other threads. How can I do this without a
recursive gdk critical section?

Regards,

Yu



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