#include <RealtimeThread.h>
Inherited by uvsim::ControlThread, uvsim::NavigationThread, uvsim::SimpleViewer, and uvsim::VisionThread.
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 |
Definition at line 20 of file RealtimeThread.h.
uvsim::RealtimeThread::RealtimeThread | ( | int | priority, | |
float | freq | |||
) |
uvsim::RealtimeThread::~RealtimeThread | ( | ) | [virtual] |
Definition at line 60 of file RealtimeThread.cc.
int uvsim::RealtimeThread::join | ( | ) |
virtual void uvsim::RealtimeThread::loop | ( | ) | [protected, pure virtual] |
Implemented in uvsim::VisionThread, uvsim::ControlThread, uvsim::NavigationThread, and uvsim::SimpleViewer.
void uvsim::RealtimeThread::run | ( | ) | [private] |
int uvsim::RealtimeThread::start | ( | ) |
Definition at line 95 of file RealtimeThread.cc.
void uvsim::RealtimeThread::stop | ( | ) |
void * uvsim::RealtimeThread::thread_func | ( | void * | d | ) | [static, private] |
const int uvsim::RealtimeThread::m_nSecPerSec = 1000000000 [static, private] |
Definition at line 29 of file RealtimeThread.h.
int uvsim::RealtimeThread::m_priority [private] |
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.
long uvsim::RealtimeThread::m_waitNSec [private] |
Definition at line 26 of file RealtimeThread.h.