Another thread/idle/timeout question



Is there a way to have a (non-main iteration) thread issue a signal when it ends?

I start up a timeout and an idle function when I spawn a new thread.
I want the main iteration to stop the timeout and idle function as soon as the new thread is finished and 
disappears.

It seems to me that if that new thread would issue a signal upon ending, I could have a main iteration 
callback do the g_source_remove (idle function) and g_source_remove (timeout function). My understanding 
(wrong?) is that only the main iteration is allowed to call gtk functions like g_source_remove().


Or is there a smarter way to go?

Dave



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