pthread_rwlock_destroy

Destroys the specified reader-writer lock.

Library:LibC
Classification:POSIX
Service:Synchronization

Syntax

  #include <pthread.h>
   
  int  pthread_rwlock_destroy  (
     pthread_rwlock_t   *rwlp);
  

Parameters

rwlp

(IN) Points to the reader-writer lock to destroy.

Return Values

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

Decimal

Constant

Description

105

ENOCONTEXT

The calling thread has no context.

Remarks

The pthread_rwlock_destroy function destroys the reader-writer lock object and releases any resources used by the reader-writer lock, including the attribute object.

See Also