rw_tryrdlock

Makes a single attempt to acquire the specified reader-writer lock in the read mode.

Library:LibC
Classification:UNIX International
Service:Synchronization

Syntax

  #include <synch.h>
   
  int  rw_tryrdlock  (
     rwlock_t   *rwlp );
  

Parameters

rwlp

(IN) Points to the reader-writer lock to acquire in the read mode.

Return Values

If successful, returns 0; otherwise, returns a nonzero error code.

Decimal

Constant

Description

62

EBUSY

The lock is in use and cannot be immediately obtained.

Remarks

If the lock being acquired is not immediately available, rw_tryrdlock returns.

See Also