#include <XmlRpcThread.h>
Public Member Functions | |
| XmlRpcThread () | |
| Construct a thread object. Not usable until setRunnable() has been called. | |
| XmlRpcThread (XmlRpcRunnable *runnable) | |
| Construct a thread object. | |
| ~XmlRpcThread () | |
| Destructor. Does not perform a join() (ie, the thread may continue to run). | |
| void | start () |
| Execute the run method of the runnable object in a separate thread. | |
| void | join () |
| Waits until the thread exits. | |
| XmlRpcRunnable * | getRunnable () const |
| Access the runnable. | |
| void | setRunnable (XmlRpcRunnable *r) |
| Set the runnable. | |
Static Private Member Functions | |
| static unsigned int __stdcall | runInThread (void *pThread) |
| Start the runnable going in a thread. | |
Private Attributes | |
| XmlRpcRunnable * | _runner |
| Code to be executed. | |
| void * | _pThread |
| Native thread object. | |
Definition at line 27 of file XmlRpcThread.h.
| XmlRpc::XmlRpcThread::XmlRpcThread | ( | ) | [inline] |
Construct a thread object. Not usable until setRunnable() has been called.
Definition at line 30 of file XmlRpcThread.h.
| XmlRpc::XmlRpcThread::XmlRpcThread | ( | XmlRpcRunnable * | runnable | ) | [inline] |
| XmlRpc::XmlRpcThread::~XmlRpcThread | ( | ) |
Destructor. Does not perform a join() (ie, the thread may continue to run).
| XmlRpcRunnable* XmlRpc::XmlRpcThread::getRunnable | ( | ) | const [inline] |
| void XmlRpc::XmlRpcThread::join | ( | ) |
Waits until the thread exits.
| static unsigned int __stdcall XmlRpc::XmlRpcThread::runInThread | ( | void * | pThread | ) | [static, private] |
Start the runnable going in a thread.
| void XmlRpc::XmlRpcThread::setRunnable | ( | XmlRpcRunnable * | r | ) | [inline] |
Set the runnable.
Definition at line 49 of file XmlRpcThread.h.
Referenced by XmlRpc::XmlRpcThreadedServer::XmlRpcThreadedServer::Worker::Worker().
00049 { _runner = r; }
| void XmlRpc::XmlRpcThread::start | ( | ) |
Execute the run method of the runnable object in a separate thread.
Returns immediately in the calling thread.
Referenced by XmlRpc::XmlRpcThreadedServer::XmlRpcThreadedServer::Worker::Worker().
void* XmlRpc::XmlRpcThread::_pThread [private] |
XmlRpcRunnable* XmlRpc::XmlRpcThread::_runner [private] |
Code to be executed.
Definition at line 57 of file XmlRpcThread.h.
Referenced by getRunnable(), and setRunnable().
1.5.8