12 #include <condition_variable>
14 #include "HAL/cpp/priority_mutex.h"
15 #include "support/deprecated.h"
18 "Semaphore scheduled for removal in 2018. Recommended to replace with a "
19 "std::mutex and std::condition_variable") Semaphore {
21 explicit Semaphore(int32_t count = 0);
22 Semaphore(Semaphore&&);
23 Semaphore& operator=(Semaphore&&);
31 static const int32_t kNoWait = 0;
32 static const int32_t kWaitForever = -1;
34 static const int32_t kEmpty = 0;
35 static const int32_t kFull = 1;
39 std::condition_variable_any m_condition;
Definition: priority_mutex.h:53