mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
* 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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user