Re: Threads and idle functions



Hi Igor,

On Tuesday, 3 July 2012, Igor Chetverovod wrote

Hi David,
probably you should use macros:
gdk_threads_enter ()
gdk_threads_leave ().


Those macros were used to lock the main gdk thread in earlier versions of
gtk if you wanted to call gtk_ functions from many threads. They are now
deprecated, I think, and you are only supposed to call gtk functions from
the main thread.

They are not necessary for g_idle_add().



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