fix(SocketProactor): use Poco::Mutex only

This commit is contained in:
Alex Fabijanic 2021-09-01 22:20:04 +02:00
parent 3a05640d21
commit 7ab016abcc

View File

@ -201,13 +201,8 @@ private:
/// If expiredOnly is true, only expired temporary functions
/// are called.
#ifdef POCO_HAVE_STD_ATOMICS
typedef Poco::SpinlockMutex MutexType;
typedef Poco::Mutex MutexType;
typedef MutexType::ScopedLock ScopedLock;
#else
typedef Poco::FastMutex MutexType;
typedef MutexType::ScopedLock ScopedLock;
#endif // POCO_HAVE_STD_ATOMICS
bool hasSocketHandlers();
static const long DEFAULT_MAX_TIMEOUT_MS = 250;