#include <ArRangeDeviceThreaded.h>
Inheritance diagram for ArRangeDeviceThreaded::
Public Methods | |
ArRangeDeviceThreaded (size_t currentBufferSize, size_t cumulativeBufferSize, const char *name, unsigned int maxRange) | |
Constructor. | |
virtual | ~ArRangeDeviceThreaded (void) |
Destructor. | |
virtual void * | runThread (void *arg)=0 |
The main run loop. More... | |
void | run (void) |
Runs the device in this thread. More... | |
void | runAsync (void) |
Runs the device in its own thread. More... | |
virtual int | lockDevice (void) |
Lock this device. More... | |
virtual int | tryLockDevice (void) |
Try to lock this device. More... | |
virtual int | unlockDevice (void) |
Unlock this device. More... |
|
Lock this device. If you are also inheriting an ASyncTask you MUST override this to use the lock from the ArASyncTask Reimplemented from ArRangeDevice. |
|
Runs the device in this thread. Runs the device in the calling thread.
|
|
Runs the device in its own thread. Runs the device in its own thread.
|
|
The main run loop. Override this function and put your taskes run loop here. Check the value of getRunning() or myRunning periodicly in your loop. If the value goes false, the loop should exit and runThread() should return. Reimplemented from ArASyncTask. Reimplemented in ArSick. |
|
Try to lock this device. If you are also inheriting an ASyncTask you MUST override this to use the lock from the ArASyncTask Reimplemented from ArRangeDevice. |
|
Unlock this device. If you are also inheriting an ASyncTask you MUST override this to use the lock from the ArASyncTask Reimplemented from ArRangeDevice. |