Complimentary to #3918 (std::*mutex wrapper) (#3954)

* Complimentary to #3918
I think that we can use Poco::Mutex and Poco::FastMutex as wrappers for std::recursive_mutex and std::mutex instead of replacing

For using std::*mutexes switch on cmake-option POCO_ENABLE_STD_MUTEX

* add define POCO_ENABLE_STD_MUTEX to the Config.h
remove empty if-else from CMakeLists.txt
This commit is contained in:
Alexander B
2023-05-05 17:49:06 +03:00
committed by GitHub
parent 971a7cc670
commit c7ac8574f8
6 changed files with 272 additions and 4 deletions

View File

@@ -24,7 +24,9 @@
#include "Poco/Timestamp.h"
#include <atomic>
#ifdef POCO_ENABLE_STD_MUTEX
#include "Poco/Mutex_STD.h"
#else
#if defined(POCO_OS_FAMILY_WINDOWS)
#if defined(_WIN32_WCE)
#include "Poco/Mutex_WINCE.h"
@@ -36,6 +38,7 @@
#else
#include "Poco/Mutex_POSIX.h"
#endif
#endif
namespace Poco {