aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/thread_utils/semaphore.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-01-30 10:29:03 -0500
committerJack Lloyd <[email protected]>2019-01-30 10:29:03 -0500
commitec82eca9477360ac1179a6f7a83cc986b84dc1de (patch)
tree62484d807b5775b3ba1c4f3296d965f0a9b4ce8c /src/lib/utils/thread_utils/semaphore.h
parentddd802cd73ba09b19c8599f0a24e3cf086efe587 (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.h4
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;
};