uvsim::RealtimeThread Class Reference

#include <RealtimeThread.h>

Inherited by uvsim::ControlThread, uvsim::NavigationThread, uvsim::SimpleViewer, and uvsim::VisionThread.

List of all members.

Public Member Functions

 RealtimeThread (int priority, float freq)
virtual ~RealtimeThread ()
int start ()
void stop ()
int join ()

Protected Member Functions

virtual void loop ()=0

Private Member Functions

void run ()

Static Private Member Functions

static void * thread_func (void *d)

Private Attributes

pthread_t m_thread
int m_priority
long m_waitNSec
struct timespec m_time
struct sched_param m_sched
volatile bool m_stopRequested

Static Private Attributes

static const int m_nSecPerSec = 1000000000

Detailed Description

Definition at line 20 of file RealtimeThread.h.


Constructor & Destructor Documentation

uvsim::RealtimeThread::RealtimeThread ( int  priority,
float  freq 
)

Definition at line 27 of file RealtimeThread.cc.

Here is the call graph for this function:

uvsim::RealtimeThread::~RealtimeThread (  )  [virtual]

Definition at line 60 of file RealtimeThread.cc.


Member Function Documentation

int uvsim::RealtimeThread::join (  ) 

Definition at line 106 of file RealtimeThread.cc.

Here is the caller graph for this function:

virtual void uvsim::RealtimeThread::loop (  )  [protected, pure virtual]

Implemented in uvsim::VisionThread, uvsim::ControlThread, uvsim::NavigationThread, and uvsim::SimpleViewer.

Here is the caller graph for this function:

void uvsim::RealtimeThread::run (  )  [private]

Definition at line 70 of file RealtimeThread.cc.

Here is the call graph for this function:

int uvsim::RealtimeThread::start (  ) 

Definition at line 95 of file RealtimeThread.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void uvsim::RealtimeThread::stop (  ) 

Definition at line 101 of file RealtimeThread.cc.

Here is the caller graph for this function:

void * uvsim::RealtimeThread::thread_func ( void *  d  )  [static, private]

Definition at line 65 of file RealtimeThread.cc.

Here is the caller graph for this function:


Member Data Documentation

const int uvsim::RealtimeThread::m_nSecPerSec = 1000000000 [static, private]

Definition at line 29 of file RealtimeThread.h.

Definition at line 25 of file RealtimeThread.h.

struct sched_param uvsim::RealtimeThread::m_sched [read, private]

Definition at line 28 of file RealtimeThread.h.

volatile bool uvsim::RealtimeThread::m_stopRequested [private]

Definition at line 30 of file RealtimeThread.h.

pthread_t uvsim::RealtimeThread::m_thread [private]

Definition at line 23 of file RealtimeThread.h.

struct timespec uvsim::RealtimeThread::m_time [read, private]

Definition at line 27 of file RealtimeThread.h.

Definition at line 26 of file RealtimeThread.h.


The documentation for this class was generated from the following files:

Generated on Mon Nov 9 12:57:48 2009 for uvsim by  doxygen 1.6.1