equal
deleted
inserted
replaced
43 void signal(uint count = 1); |
43 void signal(uint count = 1); |
44 |
44 |
45 void wait(); |
45 void wait(); |
46 |
46 |
47 bool trywait(); |
47 bool trywait(); |
|
48 // wait until the given absolute time is reached |
48 bool timedwait(struct timespec ts); |
49 bool timedwait(struct timespec ts); |
|
50 // wait until the given relative time elapses |
|
51 bool timedwait(int64_t millis); |
49 }; |
52 }; |
50 |
53 |
51 typedef PosixSemaphore SemaphoreImpl; |
54 typedef PosixSemaphore SemaphoreImpl; |
52 |
55 |
53 #endif // OS_POSIX_SEMAPHORE_POSIX_HPP |
56 #endif // OS_POSIX_SEMAPHORE_POSIX_HPP |