futex.2: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Jakub Wilk 2015-12-30 15:16:38 +01:00 committed by Michael Kerrisk
parent eb56b04bcc
commit f6615c426b
1 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ on the same futex word.
.\" Totally ordered with respect futex operations refers to semantics
.\" of the ACQUIRE/RELEASE operations and how they impact ordering of
.\" memory reads and writes. The kernel futex operations are protected
.\" by spinlocks, which ensure that that all operations are serialized
.\" by spinlocks, which ensure that all operations are serialized
.\" with respect to one another.
.\"
.\" This is a lot to attempt to define in this document. Perhaps a
@ -125,11 +125,11 @@ wait operation.
This
.BR futex ()
operation will block if and only if the lock is still acquired
(i.e., the value in the futex word still matches the "acquiired state").
(i.e., the value in the futex word still matches the "acquired state").
When releasing the lock, a thread has to first reset the
lock state to not acquired and then execute a futex
operation that wakes threads blocked on the lock flag used as a futex word
(this can be be further optimized to avoid unnecessary wake-ups).
(this can be further optimized to avoid unnecessary wake-ups).
See
.BR futex (7)
for more detail on how to use futexes.