lightspark::TimerThread Class Reference

#include <timer.h>

Collaboration diagram for lightspark::TimerThread:
Collaboration graph
[legend]

List of all members.

Classes

class  TimingEvent

Public Member Functions

 TimerThread (SystemState *s)
void stop ()
void wait ()
 ~TimerThread ()
void addTick (uint32_t tickTime, ITickJob *job)
void addWait (uint32_t waitTime, ITickJob *job)
bool removeJob (ITickJob *job)

Private Member Functions

void insertNewEvent (TimingEvent *e)
void insertNewEvent_nolock (TimingEvent *e)
void dumpJobs ()

Static Private Member Functions

static void * timer_worker (TimerThread *)

Private Attributes

sem_t mutex
sem_t newEvent
pthread_t t
std::list< TimingEvent * > pendingEvents
SystemStatem_sys
ITickJob *volatile currentJob
bool stopped

Detailed Description

Definition at line 48 of file timer.h.


Constructor & Destructor Documentation

TimerThread::TimerThread ( SystemState s  ) 

Definition at line 58 of file timer.cpp.

TimerThread::~TimerThread (  ) 

Definition at line 81 of file timer.cpp.


Member Function Documentation

void TimerThread::addTick ( uint32_t  tickTime,
ITickJob job 
)

Definition at line 200 of file timer.cpp.

void TimerThread::addWait ( uint32_t  waitTime,
ITickJob job 
)

Definition at line 210 of file timer.cpp.

void TimerThread::dumpJobs (  )  [private]

Definition at line 123 of file timer.cpp.

void TimerThread::insertNewEvent ( TimingEvent e  )  [private]

Definition at line 115 of file timer.cpp.

void TimerThread::insertNewEvent_nolock ( TimingEvent e  )  [private]

Definition at line 91 of file timer.cpp.

bool TimerThread::removeJob ( ITickJob job  ) 

Definition at line 220 of file timer.cpp.

void TimerThread::stop (  ) 

Definition at line 66 of file timer.cpp.

void * TimerThread::timer_worker ( TimerThread th  )  [static, private]

Definition at line 131 of file timer.cpp.

void TimerThread::wait (  ) 

Definition at line 75 of file timer.cpp.


Member Data Documentation

Definition at line 65 of file timer.h.

Definition at line 64 of file timer.h.

Definition at line 60 of file timer.h.

Definition at line 61 of file timer.h.

Definition at line 63 of file timer.h.

Definition at line 66 of file timer.h.

pthread_t lightspark::TimerThread::t [private]

Definition at line 62 of file timer.h.


The documentation for this class was generated from the following files:
Generated on Tue Aug 24 19:50:36 2010 for Lightspark by  doxygen 1.6.3