This commit is contained in:
Kim Barrett 2015-07-25 02:22:32 +02:00
commit 83f63bf5bb

View File

@ -1079,7 +1079,7 @@ bool PosixSemaphore::trywait() {
return ret == 0; return ret == 0;
} }
bool PosixSemaphore::timedwait(const struct timespec ts) { bool PosixSemaphore::timedwait(struct timespec ts) {
while (true) { while (true) {
int result = sem_timedwait(&_semaphore, &ts); int result = sem_timedwait(&_semaphore, &ts);
if (result == 0) { if (result == 0) {