Re: Multiple timeouts



On Thu, 03 Feb 2005 21:49:43 +0000, marcodev comcast net
<marcodev comcast net> wrote:
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?

There will be no management to prevent the timeouts from overlapping,
simply by virtue that the timeouts are in the same thread of execution,
they cannot overlap.

Cheers,
                                 -Tristan



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