Re: threading choices

2010-03-02 Thread Debarshi Ray
> If your programming language > uses exceptions, remember that leave() call should be inside > try..finally cleanup, else this will cause deadlocks if an exception > is thrown in-between. If you take C++ as an instance of a programming language with exceptions, then Glibmm offers Glib::Dispatcher

Re: threading choices

2010-03-02 Thread Paul Pogonyshev
Olivier Sessink wrote: > it seems that are two (or more) choices how to work with threads in > gtk. You can #1 use a global lock and call gtk from any thread, or you > can #2 limit your gtk calls to the main loop and not use the global > lock. As far as I understood, method #2 is portable to win32,

threading choices

2010-03-02 Thread Olivier Sessink
Hi all, it seems that are two (or more) choices how to work with threads in gtk. You can #1 use a global lock and call gtk from any thread, or you can #2 limit your gtk calls to the main loop and not use the global lock. As far as I understood, method #2 is portable to win32, and method #1 is not?