The socket thread base class. An event based thread class capable of surfacing socket events.
More...
|
| | Thread () |
| | Default constructor. More...
|
| |
| virtual | ~Thread () |
| | Class destructor. More...
|
| |
| Void | registerSocket (Base< TQueue, TMessage > *socket) |
| | Called by the framework to register a Base derived socket object with this thread. More...
|
| |
| Void | unregisterSocket (Base< TQueue, TMessage > *socket) |
| | Called by the framework to unregister a Base derived socket object with this thread. More...
|
| |
| Int | getError () |
| | Called when an error is detected. More...
|
| |
| | EThreadEvent () |
| | Default class constructor. More...
|
| |
| | ~EThreadEvent () |
| | Rhe class destructor. More...
|
| |
| Bool | sendMessage (UInt message, Bool wait=True) |
| | Sends event message to this thread. More...
|
| |
| Bool | sendMessage (UInt message, pVoid voidptr, Bool wait=True) |
| | Sends event message to this thread. More...
|
| |
| Bool | sendMessage (const TMessage &msg, Bool wait=True) |
| | Sends event message to this thread. More...
|
| |
| virtual Void | init (Short appId, UShort threadId, pVoid arg, Int queueSize=16384, Bool suspended=False, Dword stackSize=0) |
| | Initializes the thread object. More...
|
| |
| Void | quit () |
| | Posts the quit message to this thread. More...
|
| |
| Void | start () |
| | Initializes the thread when it was suspended at init(). More...
|
| |
| Void | suspend () |
| | Suspends a running thread. More...
|
| |
| Void | resume () |
| | Resumes a suspended thread. More...
|
| |
| virtual Void | onInit () |
| | Called in the context of the thread when the EM_INIT event is processed. More...
|
| |
| virtual Void | onQuit () |
| | Called in the context of the thread when the EM_QUIT event is processed. More...
|
| |
| virtual Void | onSuspend () |
| | Called in the context of the thread when th EM_SUSPEND event is processed. More...
|
| |
| virtual Void | onTimer (EThreadEventTimer *ptimer) |
| | Called in the context of the thread when th EM_TIMER event is processed. More...
|
| |
| Void | initTimer (EThreadEventTimer &t) |
| | Intializes an EThreadEvent::Timer object and associates with this thread. More...
|
| |
| ESemaphoreData & | getMsgSemaphore () |
| | Returns the semaphore associated with this thread's event queue. More...
|
| |
| | EThreadBasic () |
| | Class constructor. More...
|
| |
| virtual | ~EThreadBasic () |
| | Class destructor. More...
|
| |
| Void | init (pVoid arg, size_t stackSize=0) |
| | Initialize and start the thread. More...
|
| |
| Void | join () |
| | Waits for the thread to terminate. More...
|
| |
| Bool | isInitialized () |
| | Returns the thread initialization state. More...
|
| |
| RunState | getRunState () |
| | Returns the current thread run state. More...
|
| |
| Bool | isWaitingToRun () |
| | Determines if the thread is waiting to run. More...
|
| |
| Bool | isRunning () |
| | Determines if the thread is running. More...
|
| |
| Bool | isDoneRunning () |
| | Determines if the thread has finished running. More...
|
| |
| Int | cancelWait () |
| | Sends a cancellation request to the thread. More...
|
| |
| Void | signal (Int sig) |
| |
template<class TQueue, class TMessage>
class ESocket::Thread< TQueue, TMessage >
The socket thread base class. An event based thread class capable of surfacing socket events.