diff options
author | Jack Lloyd <[email protected]> | 2019-01-30 10:29:03 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-01-30 10:29:03 -0500 |
commit | ec82eca9477360ac1179a6f7a83cc986b84dc1de (patch) | |
tree | 62484d807b5775b3ba1c4f3296d965f0a9b4ce8c /src/lib/utils/thread_utils/semaphore.h | |
parent | ddd802cd73ba09b19c8599f0a24e3cf086efe587 (diff) |
Use std::mutex instead of mutex_type here
std::condition_variable only works with std::mutex anyway, and
this module is not enabled on systems without threads.
Diffstat (limited to 'src/lib/utils/thread_utils/semaphore.h')
-rw-r--r-- | src/lib/utils/thread_utils/semaphore.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/thread_utils/semaphore.h b/src/lib/utils/thread_utils/semaphore.h index 9db34826a..538d9ecb5 100644 --- a/src/lib/utils/thread_utils/semaphore.h +++ b/src/lib/utils/thread_utils/semaphore.h @@ -8,8 +8,8 @@ #ifndef BOTAN_SEMAPHORE_H_ #define BOTAN_SEMAPHORE_H_ -#include <botan/mutex.h> #include <condition_variable> +#include <mutex> namespace Botan { @@ -25,7 +25,7 @@ class Semaphore final private: int m_value; int m_wakeups; - mutex_type m_mutex; + std::mutex m_mutex; std::condition_variable m_cond; }; |