wxGTK wxMutexGuiEnter vs. gdk_threads_enter

Paul Cornett pc-wx at bullseye.com
Sun Jan 14 18:25:10 PST 2007


Hi,
the GTK threading system provides an exact counterpart to our 
wxMutexGuiEnter()/wxMutexGuiLeave() in 
gdk_threads_enter()/gdk_threads_leave(). I think for better integration 
with GTK, our wxMutexGuiEnter/Leave should be implemented to call 
gdk_threads_enter/leave, rather than using our own mutex. I have tried 
it out and it seems to work. Does anyone see a problem with doing this?

BTW, I have noticed that the wxGTK code carefully calls 
gdk_threads_enter()/gdk_threads_leave() in the places the GTK docs say 
to, but the calls do nothing, because we never call gdk_threads_init(). 
Oops.




More information about the wx-dev mailing list