Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
tcThread Class Referenceabstract

#include <Thread.h>

Inheritance diagram for tcThread:
Collaboration diagram for tcThread:

Public Member Functions

 tcThread ()
 
virtual ~tcThread ()
 
void join ()
 
virtual void start ()
 
virtual void stop ()
 
virtual void * run ()=0
 

Static Public Attributes

static const int HIGHEST_PRIORITY = -2
 
static const int HIGH_PRIORITY = -1
 
static const int NORMAL_PRIORITY = 0
 
static const int LOW_PRIORITY = 1
 
static const int LOWEST_PRIORITY = 2
 

Protected Member Functions

void setPriority (int anRelativePriority)
 

Protected Attributes

bool mbKillThread
 

Constructor & Destructor Documentation

◆ tcThread()

tcThread::tcThread ( )

Sets the priority relative to the inherited priority.

Negative offset

◆ ~tcThread()

tcThread::~tcThread ( )
virtual

Member Function Documentation

◆ join()

void tcThread::join ( )

Join on the underlying thread.

◆ run()

virtual void* tcThread::run ( )
pure virtual

Subclassers implement the run loop of the thread in this method.

Returns
the return value when the Thread exits.

Implemented in tcUIThread, SocCamera::tcCommandInterface, SocCamera::tcU3VisionInterface, tcIOChannelThread, SocCamera::tcGigEInterface, SocCamera::tcMityViewerInterface, tcPollingInterruptThread, tcInterruptThread, and tcPeriodicJobThread.

◆ setPriority()

void tcThread::setPriority ( int  anRelativePriority)
protected

Sets the priority of the thread.

Parameters

◆ start()

void tcThread::start ( )
virtual

Creates a pthread which targets Thread's run() method.

◆ stop()

void tcThread::stop ( )
virtual

Sets a flag which means the thread should stop.

Subclassers must implement the stopping behavior in run().

Reimplemented in tcPeriodicJobThread, and tcIOChannelThread.

Member Data Documentation

◆ HIGH_PRIORITY

const int tcThread::HIGH_PRIORITY = -1
static

◆ HIGHEST_PRIORITY

const int tcThread::HIGHEST_PRIORITY = -2
static

◆ LOW_PRIORITY

const int tcThread::LOW_PRIORITY = 1
static

◆ LOWEST_PRIORITY

const int tcThread::LOWEST_PRIORITY = 2
static

◆ mbKillThread

bool tcThread::mbKillThread
protected

◆ NORMAL_PRIORITY

const int tcThread::NORMAL_PRIORITY = 0
static

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