mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 22:31:23 +01:00
#3852: SocketReactor - 100 % CPU usage on single-core system
This commit is contained in:
parent
dac733d055
commit
894180f943
@ -63,7 +63,7 @@ int close(HANDLE h)
|
||||
class PollSetImpl
|
||||
{
|
||||
public:
|
||||
using Mutex = Poco::SpinlockMutex;
|
||||
using Mutex = Poco::FastMutex;
|
||||
using ScopedLock = Mutex::ScopedLock;
|
||||
using SocketMode = std::pair<Socket, int>;
|
||||
using SocketMap = std::map<void*, SocketMode>;
|
||||
@ -163,6 +163,7 @@ public:
|
||||
PollSet::SocketModeMap result;
|
||||
Poco::Timespan remainingTime(timeout);
|
||||
int rc;
|
||||
|
||||
ScopedLock lock(_mutex);
|
||||
do
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user