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

Obtain a Read Lock on a RWLock Instance. More...

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

Functions

int pthread_rwlock_rdlock (pthread_rwlock_t *rwlock)
 This directive attempts to obtain a read only lock on an rwlock instance. More...
 

Detailed Description

Obtain a Read Lock on a RWLock Instance.

Function Documentation

◆ pthread_rwlock_rdlock()

int pthread_rwlock_rdlock ( pthread_rwlock_t *  rwlock)

This directive attempts to obtain a read only lock on an rwlock instance.

Parameters
[in]rwlockis the pointer to rwlock id
Return values
0if successful
error_codeif unsuccessful