Commits on Source (3)
-
Rémi Denis-Courmont authored
The semantics and names mimick the C/C++2X latch. Latches are a generalisation of barriers, whence counting down and waiting are (or rather, can be) done separately. Note that the C2X uses ptrdiff_t but with does not define negative values. This uses size_t instead, not squandering the sign bit.
2d7478e1 -
Rémi Denis-Courmont authored9586e34a
-
Rémi Denis-Courmont authored
If there are no waiters, skip the notification system call.
6b9336b5