mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-17 15:14:48 +02:00
better socket reactor wake up (#3647)
* better socket reactor wake up * Remove documentation comment from source file Co-authored-by: Aleksandar Fabijanic <aleks-f@users.noreply.github.com>
This commit is contained in:
parent
5d7a1016c2
commit
3f124bd250
@ -138,7 +138,11 @@ void SocketReactor::stop()
|
||||
|
||||
void SocketReactor::wakeUp()
|
||||
{
|
||||
if (_pThread) _pThread->wakeUp();
|
||||
if (_pThread && _pThread != Thread::current())
|
||||
{
|
||||
_pThread->wakeUp();
|
||||
_pollSet.wakeUp();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user