nico@215: nico@215: nico@215: CanFestival: class_timers Class Reference nico@215: nico@215: nico@215: nico@215: nico@215:
nico@215:
nico@215:
nico@215:
nico@215:

class_timers Class Reference

nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: etisserant@240: nico@215: nico@215: etisserant@240: nico@215: nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:

Public Member Functions

 class_timers ()
 ~class_timers ()
void start_timer_thread ()
void resume_timer_thread ()
void stop_timer_thread ()
void set_timer (TIMEVAL value)
TIMEVAL get_elapsed_time ()

Private Member Functions

TIMEVAL get_timer () const

Static Private Member Functions

static DWORD WINAPI timer_loop_thread_proc (void *arg)

Private Attributes

TIMEVAL m_last_occured_alarm_time
volatile TIMEVAL m_last_alarm_set_time
HANDLE m_timer_thread
volatile bool m_continue_timer_loop
bool m_use_hi_res_timer
double m_counts_per_usec
nico@215:

Detailed Description

nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 94 of file timers_win32.cpp.


Constructor & Destructor Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
class_timers::class_timers (  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 116 of file timers_win32.cpp. nico@215:

nico@215: References m_counts_per_usec, and m_use_hi_res_timer. nico@215:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
class_timers::~class_timers (  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 133 of file timers_win32.cpp. nico@215:

nico@215: References stop_timer_thread(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

nico@215:


Member Function Documentation

etisserant@240: nico@215:
nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void class_timers::start_timer_thread (  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 173 of file timers_win32.cpp. nico@215:

nico@215: References get_timer(), m_last_alarm_set_time, m_last_occured_alarm_time, m_timer_thread, timer_loop_thread_proc(), and TIMEVAL_MAX. nico@215:

nico@215: Referenced by StartTimerLoop(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void class_timers::resume_timer_thread (  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 184 of file timers_win32.cpp. nico@215:

nico@215: References m_continue_timer_loop, and m_timer_thread. nico@215:

nico@215: Referenced by StartTimerLoop(). nico@215:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void class_timers::stop_timer_thread (  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 193 of file timers_win32.cpp. nico@215:

nico@215: References m_continue_timer_loop, and m_timer_thread. nico@215:

nico@215: Referenced by StopTimerLoop(), and ~class_timers(). nico@215:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void class_timers::set_timer (TIMEVAL  value  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 204 of file timers_win32.cpp. nico@215:

nico@215: References get_timer(), m_last_alarm_set_time, and TIMEVAL_MAX. nico@215:

nico@215: Referenced by setTimer(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
TIMEVAL class_timers::get_elapsed_time (  ) 
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 210 of file timers_win32.cpp. nico@215:

nico@215: References get_timer(), and m_last_occured_alarm_time. nico@215:

nico@215: Referenced by getElapsedTime(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
TIMEVAL class_timers::get_timer (  )  const [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 139 of file timers_win32.cpp. nico@215:

nico@215: References m_counts_per_usec, m_use_hi_res_timer, and TIMEVAL. nico@215:

nico@215: Referenced by get_elapsed_time(), set_timer(), start_timer_thread(), and timer_loop_thread_proc(). nico@215:

nico@215:

etisserant@240: nico@215:

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
DWORD WINAPI class_timers::timer_loop_thread_proc (void *  arg  )  [static, private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 151 of file timers_win32.cpp. nico@215:

nico@215: References EnterMutex(), get_timer(), LeaveMutex(), m_continue_timer_loop, m_last_alarm_set_time, m_last_occured_alarm_time, TimeDispatch(), TIMEVAL, and TIMEVAL_MAX. nico@215:

nico@215: Referenced by start_timer_thread(). nico@215:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215:
nico@215:

nico@215:


Field Documentation

etisserant@240: etisserant@240:
etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
TIMEVAL class_timers::m_last_occured_alarm_time [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 108 of file timers_win32.cpp. nico@215:

nico@215: Referenced by get_elapsed_time(), start_timer_thread(), and timer_loop_thread_proc(). nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
volatile TIMEVAL class_timers::m_last_alarm_set_time [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 109 of file timers_win32.cpp. nico@215:

nico@215: Referenced by set_timer(), start_timer_thread(), and timer_loop_thread_proc(). nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
HANDLE class_timers::m_timer_thread [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 110 of file timers_win32.cpp. nico@215:

nico@215: Referenced by resume_timer_thread(), start_timer_thread(), and stop_timer_thread(). nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
volatile bool class_timers::m_continue_timer_loop [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 111 of file timers_win32.cpp. nico@215:

nico@215: Referenced by resume_timer_thread(), stop_timer_thread(), and timer_loop_thread_proc(). nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
bool class_timers::m_use_hi_res_timer [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 112 of file timers_win32.cpp. nico@215:

nico@215: Referenced by class_timers(), and get_timer(). nico@215:

nico@215:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215:
double class_timers::m_counts_per_usec [private]
nico@215:
nico@215:
nico@215: nico@215:

nico@215: nico@215:

nico@215: Definition at line 113 of file timers_win32.cpp. nico@215:

nico@215: Referenced by class_timers(), and get_timer(). nico@215:

nico@215:

nico@215:


The documentation for this class was generated from the following file: etisserant@240:
Generated on Mon Jul 2 19:10:43 2007 for CanFestival by  nico@215: nico@215: doxygen 1.5.1
nico@215: nico@215: