| 1505 | #endif /* MUTEX_SAFE */ |
| 1506 | |
| 1507 | static bool mutex_fast_lock(pid_t self, pid_t *x) |
| 1508 | { |
| 1509 | pid_t owner = __sync_val_compare_and_swap(x, 0, self); |
| 1510 | return (owner == 0); |
| 1511 | } |
| 1512 | |
| 1513 | static bool mutex_fast_unlock(pid_t self, pid_t *x) |
| 1514 | { |
no outgoing calls
no test coverage detected