diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2012-04-22 00:44:24 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-04-22 01:21:07 +0200 |
commit | 581b822ea36002817f4c22b9ea715b72a0647166 (patch) | |
tree | 3960143f613b63bd7bac2d482a4fd64e026bc556 /sysdeps/generic/pt-rwlock-timedwrlock.c | |
parent | 69e89a859882e4f675dd5491edc969159d8a4002 (diff) |
pthread_condattr_setclock: allow a monotonic clock, if present
If CLOCK_MONOTONIC is requested, check (only once) for the
availability of a monotonic clock using `clock_getres'. If it is not,
reject CLOCK_MONOTONIC with EINVAL (as before).
* sysdeps/generic/pt-condattr-setclock.c (pthread_condattr_setclock):
Check for monotonic clock if requested.
Diffstat (limited to 'sysdeps/generic/pt-rwlock-timedwrlock.c')
0 files changed, 0 insertions, 0 deletions