Multiple timeouts



I have a section of code that invokes g_timeout_add() to begin a data capture routine. The code can be 
invoked several times but the data collection function remains the same (the argument to the timeout holds 
the details of the data that needs to be collected):

TIMEOUT = g_timeout_add (rate, CAPTURE_DATA, DVAR);

Will the gtk_main loop manage the calls to CAPTURE_DATA so the timeouts don't overlap? or should this be 
safer done with threads and mutexes?

Thanks!

-M



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