summaryrefslogtreecommitdiff
path: root/doc/posix-functions/pthread_rwlock_rdlock.texi
blob: f1c7364f0c28b3b289af84f030075761fcb07882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@node pthread_rwlock_rdlock
@section @code{pthread_rwlock_rdlock}
@findex pthread_rwlock_rdlock

POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/pthread_rwlock_rdlock.html}

Gnulib module: ---

Portability problems fixed by Gnulib:
@itemize
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Minix 3.1.8, HP-UX 11, OSF/1 4.0, Solaris 2.6, mingw, MSVC 14, BeOS.
@item
This function prefers readers to writers (meaning, when this function is
called on an rwlock that is already taken by one or more readers, and
another writer is already waiting to take it, this function may return
successfully immediately) -- a behaviour that may lead to writer starvation --
on some platforms:
glibc 2.28.
As a workaround, you can use the @code{gl_rwlock_t} type from the Gnulib
module @samp{lock}.
@end itemize