mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-20 22:31:31 +02:00

committed by
Matej Kenda

parent
d12d123cd4
commit
82751df9e5
@@ -186,6 +186,9 @@ public:
|
||||
/// until stop() is called (in a separate thread).
|
||||
/// Can be overriden by inheriting classes.
|
||||
|
||||
void start();
|
||||
/// Starts the SocketReactor.
|
||||
|
||||
void stop();
|
||||
/// Stops the SocketReactor.
|
||||
///
|
||||
|
@@ -157,6 +157,12 @@ void SocketReactor::sleep()
|
||||
}
|
||||
|
||||
|
||||
void SocketReactor::start()
|
||||
{
|
||||
_stop.exchange(false);
|
||||
}
|
||||
|
||||
|
||||
void SocketReactor::stop()
|
||||
{
|
||||
if (_stop.exchange(true)) return;
|
||||
|
Reference in New Issue
Block a user