Re: Multiple timeouts
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: "marcodev comcast net" <marcodev comcast net>
- Cc: Gtk List <gtk-app-devel-list gnome org>
- Subject: Re: Multiple timeouts
- Date: Thu, 3 Feb 2005 16:57:51 -0500
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]