Differences From Artifact [118d5cf68b]:
- File src/platform/posix/condition.m — part of check-in [374e1a1bfa] at 2021-01-02 22:04:26 on branch trunk — Update copyright (user: js, size: 1352) [annotate] [blame] [check-ins using] [more...]
To Artifact [04e776f8bc]:
- File
src/platform/posix/condition.m
— part of check-in
[dfd52d5220]
at
2021-04-17 16:24:13
on branch new-naming-convention
— of_mutex_t -> OFPlainMutex
Also rename of_rmutex_t -> OFPlainRecursiveMutex. (user: js, size: 1352) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
32 33 34 35 36 37 38 |
int
of_condition_broadcast(of_condition_t *condition)
{
return pthread_cond_broadcast(condition);
}
int
| | | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
int
of_condition_broadcast(of_condition_t *condition)
{
return pthread_cond_broadcast(condition);
}
int
of_condition_wait(of_condition_t *condition, OFPlainMutex *mutex)
{
return pthread_cond_wait(condition, mutex);
}
int
of_condition_timed_wait(of_condition_t *condition, OFPlainMutex *mutex,
OFTimeInterval timeout)
{
struct timespec ts;
ts.tv_sec = (time_t)timeout;
ts.tv_nsec = (long)((timeout - ts.tv_sec) * 1000000000);
return pthread_cond_timedwait(condition, mutex, &ts);
|
| ︙ | ︙ |