Skip to content

Commit a99cccb

Browse files
author
Vladimir Kotal
committed
add RW lock example
1 parent a844175 commit a99cccb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

threads.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,7 @@
11871187
reader threads. E.g. if a lock is owned by writer and some other thread
11881188
calls function \funnm{pthread\_rwlock\_rdlock} and there is at least one thread
11891189
waiting in \funnm{pthread\_rwlock\_wrlock}, the writer will be given precedence.
1190+
See \example{pthreads/pthread-rwlock.c}.
11901191
\item There is maximal count of locking operations in given implementation
11911192
(inferred from the type that holds the lock count). If the maximum is reached
11921193
\funnm{pthread\_rwlock\_rdlock} returns the \texttt{EAGAIN} error.

0 commit comments

Comments
 (0)