Public Member Functions | |
TriggerRunner (PollingManagerThread *svr, ServiceEnvironmentIFCRef env) | |
virtual void | run () |
Public Attributes | |
PolledProviderIFCRef | m_itp |
time_t | m_nextPoll |
bool | m_isRunning |
Int32 | m_pollInterval |
PollingManagerThread * | m_pollMan |
ServiceEnvironmentIFCRef | m_env |
LoggerRef | m_logger |
Private Member Functions | |
void | doCooperativeCancel () |
This function is available for subclasses to override if they wish to be notified when a cooperative cancel is being invoked on the thread. | |
void | doDefinitiveCancel () |
See the documentation for doCooperativeCancel(). |
Definition at line 90 of file OW_PollingManager.hpp.
|
Definition at line 413 of file OW_PollingManager.cpp. |
|
This function is available for subclasses to override if they wish to be notified when a cooperative cancel is being invoked on the thread. Note that this function will be invoked in a separate thread. For instance, a thread may use this function to write to a pipe or socket, if Thread::run() is blocked in select(), it can be unblocked and instructed to exit. It is also possible for an individual thread to override the cancellation request, if it knows that cancellation at this time may crash the system or cause a deadlock. To do this, the thread should throw an CancellationDeniedException. Note that threads are usually only cancelled in the event of a system shutdown or restart, so a thread should make a best effort to actually shutdown.
Reimplemented from OW_NAMESPACE::Runnable. Definition at line 469 of file OW_PollingManager.cpp. References m_itp. |
|
See the documentation for doCooperativeCancel(). When definitiveCancel() is called on a thread, first doCooperativeCancel() will be called, and then doDefinitiveCancel() will be called.
Reimplemented from OW_NAMESPACE::Runnable. Definition at line 476 of file OW_PollingManager.cpp. References m_itp. |
|
|
Definition at line 101 of file OW_PollingManager.hpp. Referenced by run(). |
|
Definition at line 98 of file OW_PollingManager.hpp. Referenced by run(). |
|
Definition at line 96 of file OW_PollingManager.hpp. Referenced by doCooperativeCancel(), doDefinitiveCancel(), and run(). |
|
Definition at line 102 of file OW_PollingManager.hpp. Referenced by run(). |
|
Definition at line 97 of file OW_PollingManager.hpp. Referenced by run(). |
|
Definition at line 99 of file OW_PollingManager.hpp. Referenced by run(). |
|
Definition at line 100 of file OW_PollingManager.hpp. Referenced by run(). |