#include <FalconDeviceBoostThread.h>
Inherits libnifalcon::FalconDevice.
Public Member Functions | |
FalconDeviceBoostThread () | |
virtual | ~FalconDeviceBoostThread () |
void | startThread () |
virtual void | runThreadLoop () |
void | stopThread () |
bool | isThreadRunning () |
void | getPosition (boost::array< double, 3 > &pos) |
Protected Member Functions | |
void | runDeviceComm () |
Protected Attributes | |
boost::shared_ptr< boost::thread > | m_ioThread |
boost::array< double, 3 > | m_localPosition |
bool | m_runThreadLoop |
The FalconDeviceBoostThread class is only available if the boost::thread library is available on the system.
libnifalcon::FalconDeviceBoostThread::FalconDeviceBoostThread | ( | ) |
Constructor
libnifalcon::FalconDeviceBoostThread::~FalconDeviceBoostThread | ( | ) | [virtual] |
Destructor
void libnifalcon::FalconDeviceBoostThread::getPosition | ( | boost::array< double, 3 > & | pos | ) |
Thread safe position return
bool libnifalcon::FalconDeviceBoostThread::isThreadRunning | ( | ) | [inline] |
Thread run status
void libnifalcon::FalconDeviceBoostThread::runDeviceComm | ( | ) | [protected] |
Wrapper function for dealing with device communication
void libnifalcon::FalconDeviceBoostThread::runThreadLoop | ( | ) | [virtual] |
Runs IO loop. Overridden to implement application specific functionality
void libnifalcon::FalconDeviceBoostThread::startThread | ( | ) |
Starts a thread that runs FalconDevice::runIOLoop constantly
void libnifalcon::FalconDeviceBoostThread::stopThread | ( | ) |
Stops thread if running
boost::shared_ptr<boost::thread> libnifalcon::FalconDeviceBoostThread::m_ioThread [protected] |
Internal thread object
boost::array<double, 3> libnifalcon::FalconDeviceBoostThread::m_localPosition [protected] |
Internal position storage
bool libnifalcon::FalconDeviceBoostThread::m_runThreadLoop [protected] |
Internal thread execution state. Thread loop exits if this is false.