static void unixCheckClockType() { #if (_POSIX_MONOTONIC_CLOCK-0 == 0) if (is_likely(load_acquire(monotonicClockChecked))) return; # if defined(_SC_MONOTONIC_CLOCK) // detect if the system support monotonic timers long x = sysconf(_SC_MONOTONIC_CLOCK); store_release(monotonicClockAvailable, x >= 200112L); # endif store_release(monotonicClockChecked, true); #endif }
static inline int action_completed(struct cpu_action_queue *q, struct cpu_action *action) { return load_acquire(&q->completed) == action; }