![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <TimedEventManager.h>
Inheritance diagram for Support::TimedEventManager::TimerManager:Public Member Functions | |
| virtual void | execute () |
| TimerManager (TimedEventManager *manager) | |
Private Attributes | |
| TimedEventManager * | _manager |
| boost::xtime | _timerGrain |
This inner type is intended to use a thread in the threadpool to call timers causing them to put events into the threadpool
Definition at line 99 of file TimedEventManager.h.
| Support::TimedEventManager::TimerManager::TimerManager | ( | TimedEventManager * | manager | ) |
Constructor
Definition at line 57 of file TimedEventManager.cpp.
References _timerGrain, and Support::TimedEventManagerGranularityInSeconds.
: _manager(manager) { _timerGrain.sec = TimedEventManagerGranularityInSeconds; }
| void Support::TimedEventManager::TimerManager::execute | ( | ) | [virtual] |
Called to execute this task This will periodically check all timers in this event manager
Implements Support::ThreadTaskBase.
Definition at line 66 of file TimedEventManager.cpp.
{
while(true)
{
_manager->checkTimers();
boost::thread::sleep(_timerGrain);
}
}
Definition at line 101 of file TimedEventManager.h.
boost::xtime Support::TimedEventManager::TimerManager::_timerGrain [private] |
Definition at line 102 of file TimedEventManager.h.
Referenced by TimerManager().
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.