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

Convert POSIX Mutex ID to local object pointer. More...

#include <rtems/posix/muteximpl.h>
#include <rtems/score/apimutex.h>
Include dependency graph for mutexget.c:

Functions

POSIX_Mutex_Control_POSIX_Mutex_Get (pthread_mutex_t *mutex, Objects_Locations *location)
 POSIX Mutex Get (Thread Dispatch Disable) More...
 
POSIX_Mutex_Control_POSIX_Mutex_Get_interrupt_disable (pthread_mutex_t *mutex, Objects_Locations *location, ISR_lock_Context *lock_context)
 POSIX Mutex Get (Interrupt Disable) More...
 

Detailed Description

Convert POSIX Mutex ID to local object pointer.

Function Documentation

◆ _POSIX_Mutex_Get()

POSIX_Mutex_Control* _POSIX_Mutex_Get ( pthread_mutex_t *  mutex,
Objects_Locations location 
)

POSIX Mutex Get (Thread Dispatch Disable)

A support routine which translates the mutex id into a local pointer. As a side-effect, it may create the mutex.

Note
This version of the method uses a dispatching critical section.

Referenced by _POSIX_Mutex_Translate_core_mutex_return_code(), and pthread_mutex_init().

◆ _POSIX_Mutex_Get_interrupt_disable()

POSIX_Mutex_Control* _POSIX_Mutex_Get_interrupt_disable ( pthread_mutex_t *  mutex,
Objects_Locations location,
ISR_lock_Context lock_context 
)

POSIX Mutex Get (Interrupt Disable)

A support routine which translates the mutex id into a local pointer. As a side-effect, it may create the mutex.

Note
: This version of the method uses an interrupt critical section.

Referenced by _POSIX_Mutex_Translate_core_mutex_return_code().