mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-08 02:39:22 +01:00
Add start() method #4833
This commit is contained in:
parent
c9dc1f9d3c
commit
1bb4c1bd80
@ -186,6 +186,9 @@ public:
|
|||||||
/// until stop() is called (in a separate thread).
|
/// until stop() is called (in a separate thread).
|
||||||
/// Can be overriden by inheriting classes.
|
/// Can be overriden by inheriting classes.
|
||||||
|
|
||||||
|
void start();
|
||||||
|
/// Starts the SocketReactor.
|
||||||
|
|
||||||
void stop();
|
void stop();
|
||||||
/// Stops the SocketReactor.
|
/// Stops the SocketReactor.
|
||||||
///
|
///
|
||||||
|
@ -157,6 +157,12 @@ void SocketReactor::sleep()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void SocketReactor::start()
|
||||||
|
{
|
||||||
|
_stop.exchange(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void SocketReactor::stop()
|
void SocketReactor::stop()
|
||||||
{
|
{
|
||||||
if (_stop.exchange(true)) return;
|
if (_stop.exchange(true)) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user