Re: understanding GtkSourceView internals
"Olivier Sessink" <[email protected]> Wed, 30 Jul 2008 15:19:22 +0200
| Newsgroups | gmane.comp.gnome.devtools |
|---|---|
| Message-ID | <[email protected]> |
2008/7/30 Paolo Borelli <[email protected]>: [..] >> But the idle_worker functions call gdk_threads_(enter|leave) so it >> seems there is some multi-threading as well. What exactly is running >> in a separate thread? > No, there is no work being done in threads. > Taking the lock in idle handlers that interact with gtk is just good > programming practice since the program using gtksourceview may be using > threads that interact with gtk concurrently with the idle handlers in > the main thread. I thought that idle functions are guaranteed to be called from the thread that is running the main loop (which should be the thread that runs gdk/gtk too)?? thanks for your answers, Olivier