NXRwLockDowngrade

Converts a previously acquired reader-writer lock from write mode to read mode.

Library:LibC
Classification:NKS
Service:Synchronization

Syntax

  #include <nks/synch.h>
   
  int NXRwLockDowngrade (
     NXRwLock_t  *lock));
  

Parameters

lock

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

Return Values

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

Decimal

Hex

Constant

Description

9

0x09

NX_EINVAL

The mutex is not a valid mutex.

66

0x42

NX_ENOSYS

This operation is not supported on this platform.

69

0x45

NX_EPERM

The lock has not been previously acquired for writing.

See Also