24 #ifndef __ARM_COMPUTE_UTILS_SEMAMPHORE_H__ 25 #define __ARM_COMPUTE_UTILS_SEMAMPHORE_H__ 29 #include <condition_variable> 33 #ifndef NO_MULTI_THREADING 43 : _value(value), _m(), _cv()
49 std::unique_lock<std::mutex> lock(_m);
56 std::unique_lock<std::mutex> lock(_m);
57 _cv.wait(lock, [
this]()
67 std::condition_variable _cv;
void wait()
Waits on a semaphore.
Semaphore(int value=0)
Default Constuctor.
std::mutex Mutex
Wrapper of Mutex data-object.
This file contains all available output stages for GEMMLowp on OpenCL.
void signal()
Signals a semaphore.