| 
 
 | 
 | ||||||||||||||||
A data source with a thread of its own
| void  destroyed () | destroyed | 
[virtual]
The destruction notification, stops the thread
Reimplemented from DataSource.
| bool  start (const char* name = "ThreadedSource", Thread::Priority prio = Thread::Normal) | start | 
Starts the worker thread
Parameters:
| name | Static name of this thread | 
| prio | Thread's priority | 
Returns: True if started, false if an error occured
| void  stop () | stop | 
Stops and destroys the worker thread if running
| Thread*  thread () | thread | 
[const]
Return a pointer to the worker thread
Returns: Pointer to running worker thread or NULL
| bool  running () | running | 
[const]
Check if the data thread is running
Returns: True if the data thread was started and is running
| inline bool  asyncDelete () | asyncDelete | 
[const]
Get the current status of the asynchronous deletion flag
| inline  ThreadedSource (const char* format = "slin") | ThreadedSource | 
[protected]
Threaded Source constructor
Parameters:
| format | Name of the data format, default "slin" (Signed Linear) | 
| inline void  asyncDelete (bool async) | asyncDelete | 
[protected]
Derived classes should call this method to let the source to be destroyed asynchronously in the data thread
| inline void  clearThread () | clearThread | 
[protected]
Clear the worker thread pointer
| void  run () | run | 
[protected pure virtual]
The worker method. You have to reimplement it as you need
| void  cleanup () | cleanup | 
[protected virtual]
The cleanup after thread method, deletes the source if already dereferenced and set for asynchronous deletion
| bool  zeroRefsTest () | zeroRefsTest | 
[protected virtual]
Override so destruction can be delayed after all references were lost to let the data pumping thread end normally
Returns: True to delete the source right away, false to defer
Reimplemented from RefObject.
| Generated by: root on dragoshel on Fri Aug 24 11:49:48 2007, using kdoc 2.0a54. |