Re: Model View Controller. How to implement?



>Read the thread-section in glib and gtk reference manual, they describe
>the usage og gdk_threads_enter/gdk_threads_leave. Any thread can update
>any widget, since a change will enqueue a draw event that will be executed
>in the  gtk_main() thread.

just keep in mind that this only works if the non-gtk_main() threads
don't have hard timing requirements, since the gtk_main() thread can
potentially block them for arbitrary periods of time when they call
gdk_threads_enter().

--p



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