Re: understanding GtkSourceView internals



Il giorno mer, 30/07/2008 alle 13.23 +0200, Olivier Sessink ha scritto:
> Hi all,
> 

Hi Olivier,

> I'm looking trough the code to try to understand some of the scanning internals.
> 
> as far as I understand now, the scanning in update_syntax() is running
> in idle time, in short timeslices such that the GUI is never blocked
> for a long time.
> 
> 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.

> 
> Another question: the syntax structure may be incomplete because the
> scanning is not yet done. How does the highlighting code deal with an
> incomplete syntax structure?
> 

I do not recall the details here, so I'd appreciate if Yevgen could
answer... not sure if he reads this list though. I am CC'ing him.


Ciao
	Paolo
 

> thanks,
>    Olivier
> _______________________________________________
> gnome-devtools mailing list
> gnome-devtools gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devtools
> 



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