Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Futex ¶
A futex is a way for userspace to wait with the pointer as the key, and for another thread to wake one or all waiting threads keyed on the same pointer.
A futex does not change the underlying value, it only reads it before going to sleep (atomically) to prevent lost wake-ups.
func (*Futex) Wait ¶
Atomically check for cmp to still be equal to the futex value and if so, go to sleep. Return true if we were definitely awoken by a call to Wake or WakeAll, and false if we can't be sure of that.
Click to show internal directories.
Click to hide internal directories.