mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-18 19:37:51 +01:00
parent
7495f0592c
commit
336e0e802f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user