mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 05:29:41 +01:00
Replaced boolean with enum in c'tor.
Implemented in a similar style to FPEnvironment.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user