aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/semaphore.h')
-rw-r--r--src/utils/semaphore.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/utils/semaphore.h b/src/utils/semaphore.h
deleted file mode 100644
index c3ce73680..000000000
--- a/src/utils/semaphore.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
-* Semaphore
-* by Pierre Gaston (http://p9as.blogspot.com/2012/06/c11-semaphores.html)
-* modified by Joel Low for Botan
-*
-*/
-
-#ifndef BOTAN_SEMAPHORE_H__
-#define BOTAN_SEMAPHORE_H__
-
-#include <mutex>
-#include <condition_variable>
-
-namespace Botan {
-
-class Semaphore
- {
- public:
- Semaphore(int value = 0) : m_value(value), m_wakeups(0) {}
-
- void acquire();
-
- void release(size_t n = 1);
-
- private:
- int m_value;
- int m_wakeups;
- std::mutex m_mutex;
- std::condition_variable m_cond;
- };
-
-}
-
-#endif