Re: understanding GtkSourceView internals
- From: "Olivier Sessink" <oliviersessink gmail com>
- To: gnome-devtools gnome org
- Subject: Re: understanding GtkSourceView internals
- Date: Wed, 30 Jul 2008 15:19:22 +0200
2008/7/30 Paolo Borelli <pborelli katamail com>:
[..]
>> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]