Replaced boolean with enum in c'tor.

Implemented in a similar style to FPEnvironment.
This commit is contained in:
martin-osborne
2015-01-14 10:48:22 +00:00
parent f9942829d3
commit 00b568193c
12 changed files with 59 additions and 23 deletions

View File

@@ -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();