Rev | Line | |
---|
[4941] | 1 | #ifndef RTNET_SDO_EXAMPLE_CONNECTIONREQUIREDRUNNABLE_H
|
---|
| 2 | #define RTNET_SDO_EXAMPLE_CONNECTIONREQUIREDRUNNABLE_H
|
---|
| 3 |
|
---|
| 4 | #include <concurrency/Thread.h>
|
---|
| 5 | #include <concurrency/Monitor.h>
|
---|
| 6 | #include <string>
|
---|
| 7 |
|
---|
| 8 | #include "ConnectionStatusMonitor.h"
|
---|
| 9 |
|
---|
| 10 | class ConnectionRequiredRunnable : public apache::thrift::concurrency::Runnable
|
---|
| 11 | {
|
---|
| 12 | public:
|
---|
| 13 | ConnectionRequiredRunnable(boost::shared_ptr<ConnectionStatusMonitor>& connectionMonitor, const std::string& name);
|
---|
| 14 | virtual ~ConnectionRequiredRunnable() {}
|
---|
| 15 | virtual void connectionLost();
|
---|
| 16 | virtual void connectionEstablished();
|
---|
| 17 | virtual void stop();
|
---|
| 18 | protected:
|
---|
| 19 | virtual void disconnected();
|
---|
| 20 | virtual void connectWait();
|
---|
| 21 | virtual void disconnectWait();
|
---|
| 22 | boost::shared_ptr<ConnectionStatusMonitor> connectionMonitor_;
|
---|
| 23 | std::string threadName_;
|
---|
| 24 | apache::thrift::concurrency::Monitor connectMonitor_;
|
---|
| 25 | apache::thrift::concurrency::Monitor disconnectMonitor_;
|
---|
| 26 | bool stop_;
|
---|
| 27 | };
|
---|
| 28 |
|
---|
| 29 | #endif // RTNET_PLOT_CONNECTIONREQUIREDRUNNABLE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.