[asycxx-devel] SF.net SVN: asycxx:[50] trunk/src/Reactor.cxx
Status: Alpha
Brought to you by:
joe_steeve
|
From: <joe...@us...> - 2009-04-08 07:48:50
|
Revision: 50
http://asycxx.svn.sourceforge.net/asycxx/?rev=50&view=rev
Author: joe_steeve
Date: 2009-04-08 07:48:45 +0000 (Wed, 08 Apr 2009)
Log Message:
-----------
updated Reactor to update the timer manager
From: Joe Steeve <js...@hi...>
Modified Paths:
--------------
trunk/src/Reactor.cxx
Modified: trunk/src/Reactor.cxx
===================================================================
--- trunk/src/Reactor.cxx 2009-04-08 07:48:12 UTC (rev 49)
+++ trunk/src/Reactor.cxx 2009-04-08 07:48:45 UTC (rev 50)
@@ -22,6 +22,7 @@
#include <asycxx/Reactor.h>
#include <asycxx/Selectable.h>
#include <asycxx/Error.h>
+#include <asycxx/Timer.h>
using namespace asycxx;
@@ -33,6 +34,7 @@
Reactor::Reactor ()
{
m_LastAwokenTS = GetCurrentTimeStamp();
+ Timer::Init (this);
}
@@ -153,7 +155,7 @@
ProcessEvents ();
/* update the timer so that it can fire timeouts */
- /* TODO: update the timer here */
+ Timer::CheckAndFireTimers ();
/* cleanup the event lists of dead 'Selectable's */
CleanupEventLists ();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|