CEEOPRL2

C library interface: pthread_rwlock_rdlock()

CEEOPRL2 is the C-callable Language Environment interface to the pthread_ rwlock_rdlock() function for a read lock.

Syntax

int CEEOPRL2 (rwlock)
pthread_rwlock_t  *rwlock;
CEEOPRL2
Call this CWI interface as follows:
L     R15,CEECAALEOV-CEECAA(,R12) 
L     R15,520(,R15)
BALR  R14,R15
rwlock (input)
Identifies the read-write lock to be locked for read.
CEEOPRL2 can return the following function values:
0
Function completed successfully.
-1
An error occurred; errno can be one of the following values:
EINVAL
The specified read-write lock is not valid.
EDEADLK
The specified read-write lock is already locked.
EAGAIN
The specified read-write lock could not be acquired because the maximum number of recursive locks for the read-write lock has been exceeded.
ENOMEM
Not enough memory to acquire a lock.