|
log4cplus
2.0.0
|
This class is used by SocketAppender and (remote) SysLogAppender to provide asynchronous re-connection. More...
#include <connectorthread.h>
Public Member Functions | |
| ConnectorThread (IConnectorThreadClient &client) | |
| virtual | ~ConnectorThread () |
| virtual void | run () |
| void | terminate () |
| Call this function to terminate ConnectorThread. | |
| void | trigger () |
| This function triggers (`trigger_ev`) connection check and attempt to re-connect a broken connection, when necessary. | |
Protected Attributes | |
| IConnectorThreadClient & | ctc |
| reference to ConnectorThread's client | |
| thread::ManualResetEvent | trigger_ev |
| This event is the re-connection trigger. | |
| bool | exit_flag |
| When this variable set to true when ConnectorThread is signaled to. | |
This class is used by SocketAppender and (remote) SysLogAppender to provide asynchronous re-connection.
Definition at line 72 of file connectorthread.h.
| client | reference to ConnectorThread's client object |
| virtual log4cplus::helpers::ConnectorThread::~ConnectorThread | ( | ) | [virtual] |
| virtual void log4cplus::helpers::ConnectorThread::run | ( | ) | [virtual] |
Implements log4cplus::thread::AbstractThread.
Call this function to terminate ConnectorThread.
The function sets `exit_flag` and then triggers `trigger_ev` to wake up the ConnectorThread.
This function triggers (`trigger_ev`) connection check and attempt to re-connect a broken connection, when necessary.
reference to ConnectorThread's client
Definition at line 93 of file connectorthread.h.
bool log4cplus::helpers::ConnectorThread::exit_flag [protected] |
When this variable set to true when ConnectorThread is signaled to.
Definition at line 99 of file connectorthread.h.
This event is the re-connection trigger.
Definition at line 96 of file connectorthread.h.
1.7.6.1