mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
Replaced boolean with enum in c'tor.
Implemented in a similar style to FPEnvironment.
This commit is contained in:
@@ -40,7 +40,7 @@ namespace
|
||||
{
|
||||
try
|
||||
{
|
||||
Mutex mtx(false);
|
||||
Mutex mtx(Mutex::MUTEX_NONRECURSIVE);
|
||||
mtx.lock();
|
||||
mtx.lock();
|
||||
}
|
||||
@@ -74,7 +74,7 @@ MutexTest::~MutexTest()
|
||||
|
||||
void MutexTest::testMutexRecursion()
|
||||
{
|
||||
Mutex mtx(false);
|
||||
Mutex mtx(Mutex::MUTEX_NONRECURSIVE);
|
||||
mtx.lock();
|
||||
|
||||
bool success = mtx.tryLock();
|
||||
|
||||
Reference in New Issue
Block a user