#include <thread.h>
Inheritance diagram for PosixThread::
Public Methods | |
void | SignalThread (int signo) |
Delivers a Posix signal to the current thread. More... | |
Protected Methods | |
void | SignalParent (signo_t signo) |
In the Posix version of Common C++, this can be used to send a signal into the parent thread of the current object. More... | |
void | SignalMain (signo_t signo) |
In the Posix version of Common C++, this can be used to send a signal into the main application thread. More... | |
virtual void | OnTimer (void) |
A derivable method to call when a SIGALRM is being delivered to a specific thread. More... | |
virtual void | OnHangup (void) |
A derived method to handle hangup events being delivered to a specific thread. More... | |
virtual void | OnException (void) |
A derived method to call when a SIGABRT is being delivered to a specific thread. More... | |
virtual void | OnDisconnect (void) |
A derived method to call when a SIGPIPE is being delivered to a specific thread. More... | |
virtual void | OnPolling (void) |
A derived method to handle asynchronous I/O requests delivered to the specified thread. More... | |
virtual void | OnSignal (int signo) |
A derivable method to call for delivering a signal event to a specified thread. More... | |
void | setTimer (timeout_t timer) |
Used to specify a timeout event that can be delivered to the current thread via SIGALRM. More... | |
timeout_t | getTimer (void) |
Gets the time remaining for the current threads timer before it expires. More... | |
void | endTimer (void) |
Terminates the timer before the timeout period has expired. More... | |
void | WaitSignal (signo_t signo) |
Used to wait on a Posix signal from another thread. More... | |
void | setSignal (int signo, bool mode) |
Used to enable or disable a signal within the current thread. More... | |
Friends | |
void | execHandler (Thread *th) |
void | sigHandler (int signo) |
void | siginstall (int signo) |
Install a signal handler for use by threads and the OnSignal() event notification handler. More... |
|
A derived method to call when a SIGPIPE is being delivered to a specific thread.
|
|
A derived method to call when a SIGABRT is being delivered to a specific thread.
|
|
A derived method to handle hangup events being delivered to a specific thread.
|
|
A derived method to handle asynchronous I/O requests delivered to the specified thread.
|
|
A derivable method to call for delivering a signal event to a specified thread.
|
|
A derivable method to call when a SIGALRM is being delivered to a specific thread.
|
|
In the Posix version of Common C++, this can be used to send a signal into the main application thread.
|
|
In the Posix version of Common C++, this can be used to send a signal into the parent thread of the current object.
|
|
Delivers a Posix signal to the current thread.
|
|
Used to wait on a Posix signal from another thread. This can be used as a crude rondevious/synchronization method between threads.
|
|
Terminates the timer before the timeout period has expired. This prevents the timer from sending it's SIGALRM and makes the timer available to other threads. |
|
Gets the time remaining for the current threads timer before it expires.
|
|
Used to enable or disable a signal within the current thread.
|
|
Used to specify a timeout event that can be delivered to the current thread via SIGALRM. When the timer expires, the OnTimer() method is called for the thread. At present, only one thread timer can be active at any given time. On some operating systems (including Linux) a timer can be active on each thread.
|
|
Reimplemented from Thread. |
|
|
|
Install a signal handler for use by threads and the OnSignal() event notification handler.
|