mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
backport changes from 1.4.3 branch
This commit is contained in:
@@ -84,12 +84,12 @@ inline void MutexImpl::lockImpl()
|
||||
|
||||
inline bool MutexImpl::tryLockImpl()
|
||||
{
|
||||
try
|
||||
{
|
||||
return TryEnterCriticalSection(&_cs) == TRUE;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
try
|
||||
{
|
||||
return TryEnterCriticalSection(&_cs) != 0;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
throw SystemException("cannot lock mutex");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user