mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-17 07:13:27 +02:00
Avoid epoll_wait causing the lock to not be released (#3983)
* Avoid epoll_wait causing the lock to not be released. * code style
This commit is contained in:
parent
bcae06f423
commit
39a207ce62
@ -169,7 +169,6 @@ public:
|
|||||||
Poco::Timespan remainingTime(timeout);
|
Poco::Timespan remainingTime(timeout);
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
ScopedLock lock(_mutex);
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
Poco::Timestamp start;
|
Poco::Timestamp start;
|
||||||
@ -199,6 +198,8 @@ public:
|
|||||||
}
|
}
|
||||||
while (false);
|
while (false);
|
||||||
|
|
||||||
|
ScopedLock lock(_mutex);
|
||||||
|
|
||||||
for (int i = 0; i < rc; i++)
|
for (int i = 0; i < rc; i++)
|
||||||
{
|
{
|
||||||
if (_events[i].data.ptr) // skip eventfd
|
if (_events[i].data.ptr) // skip eventfd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user