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

@@ -22,9 +22,9 @@
namespace Poco {
MutexImpl::MutexImpl(bool recursive)
MutexImpl::MutexImpl(MutexTypeImpl type)
: _lockCount(0)
, _recursive(recursive)
, _recursive(type == MUTEX_RECURSIVE_IMPL)
{
// the fct has a boolean return value under WInnNt/2000/XP but not on Win98
// the return only checks if the input address of &_cs was valid, so it is safe to omit it