RTEMS CPU Kit with SuperCore  4.11.3
Functions
prwlockdestroy.c File Reference

Destroy a RWLock. More...

#include <pthread.h>
#include <errno.h>
#include <rtems/posix/rwlockimpl.h>
#include <rtems/score/threadqimpl.h>
Include dependency graph for prwlockdestroy.c:

Functions

int pthread_rwlock_destroy (pthread_rwlock_t *rwlock)
 This directive allows a thread to delete a rwlock specified by the rwlock id. More...
 

Detailed Description

Destroy a RWLock.

Function Documentation

◆ pthread_rwlock_destroy()

int pthread_rwlock_destroy ( pthread_rwlock_t *  rwlock)

This directive allows a thread to delete a rwlock specified by the rwlock id.

The rwlock is freed back to the inactive rwlock chain.

Parameters
[in]rwlockis the rwlock id
Returns
This method returns 0 if there was not an error. Otherwise, a status code is returned indicating the source of the error.

References _Objects_Allocator_lock().