Skip to content

Commit 619928c

Browse files
committed
add link to new pthread_rwlock example
1 parent 4b02fba commit 619928c

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
@@ -1212,6 +1212,7 @@
12121212
thread for writing (and no one for reading).
12131213
\item Read-write locks are semantically similar to locking files using
12141214
\texttt{fcntl} function.
1215+
\item See \example{pthreads/pthread-rwlock.c} for a classic use case.
12151216
\item It is common that a given implementation prefers writer threads to
12161217
reader threads. E.g. if a lock is owned by a writer while some other thread
12171218
calls function \funnm{pthread\_rwlock\_rdlock} and there is at least one thread

0 commit comments

Comments
 (0)