Home | History | Annotate | Download | only in platform

Lines Matching refs:Semaphore

5 #include "src/base/platform/semaphore.h"
23 Semaphore::Semaphore(int count) {
31 Semaphore::~Semaphore() {
38 void Semaphore::Signal() {
45 void Semaphore::Wait() {
48 if (result == KERN_SUCCESS) return; // Semaphore was signalled.
54 bool Semaphore::WaitFor(const TimeDelta& rel_time) {
60 // Return immediately if semaphore was not signalled.
67 if (result == KERN_SUCCESS) return true; // Semaphore was signalled.
76 Semaphore::Semaphore(int count) {
84 Semaphore::~Semaphore() {
91 void Semaphore::Signal() {
98 void Semaphore::Wait() {
101 if (result == 0) return; // Semaphore was signalled.
109 bool Semaphore::WaitFor(const TimeDelta& rel_time) {
125 // Wait for semaphore signalled or timeout.
128 if (result == 0) return true; // Semaphore was signalled.
137 // Timed out while waiting for semaphore.
149 Semaphore::Semaphore(int count) {
156 Semaphore::~Semaphore() {
163 void Semaphore::Signal() {
171 void Semaphore::Wait() {
178 bool Semaphore::WaitFor(const TimeDelta& rel_time) {