RTEMS
Modules | Files | Classes | Macros | Functions
API Mutex Handler

Provides routines to ensure mutual exclusion on API level. More...

Modules

 RTEMS Allocator Mutex
 Protection for all memory allocations and deallocations in RTEMS.
 

Files

file  apimutex.h
 API Mutex Handler API.
 
file  muteximpl.h
 Structures for the implementation of mutexes.
 
file  apimutexisowner.c
 
file  apimutexlock.c
 Acquires the specified API mutex.
 
file  apimutexunlock.c
 Releases the Specified API Mutex.
 

Classes

struct  API_Mutex_Control
 Control block used to manage each API mutex. More...
 
struct  Mutex_Control
 
struct  Mutex_recursive_Control
 

Macros

#define API_MUTEX_INITIALIZER(name)   { _MUTEX_RECURSIVE_NAMED_INITIALIZER( name ), 0 }
 Statically initialize an API mutex.
 

Functions

void _API_Mutex_Lock (API_Mutex_Control *mutex)
 Acquires the specified API mutex. More...
 
void _API_Mutex_Unlock (API_Mutex_Control *mutex)
 Releases the specified API mutex. More...
 
bool _API_Mutex_Is_owner (const API_Mutex_Control *mutex)
 Checks if the specified API mutex is owned by the executing thread. More...
 

Detailed Description

Provides routines to ensure mutual exclusion on API level.

Function Documentation

◆ _API_Mutex_Is_owner()

bool _API_Mutex_Is_owner ( const API_Mutex_Control mutex)

Checks if the specified API mutex is owned by the executing thread.

Parameters
[in]mutexThe API mutex to check the owner from.

Definition at line 23 of file apimutexisowner.c.

◆ _API_Mutex_Lock()

void _API_Mutex_Lock ( API_Mutex_Control mutex)

Acquires the specified API mutex.

Parameters
[in,out]mutexThe API mutex to acquire.

Definition at line 25 of file apimutexlock.c.

◆ _API_Mutex_Unlock()

void _API_Mutex_Unlock ( API_Mutex_Control mutex)

Releases the specified API mutex.

Parameters
[in,out]mutexThe API mutex to release.

Definition at line 25 of file apimutexunlock.c.