23 #ifndef _RTEMS_POSIX_MUTEXIMPL_H 24 #define _RTEMS_POSIX_MUTEXIMPL_H 75 _CORE_mutex_Destroy( &the_mutex->Mutex );
76 _Objects_Free( &_POSIX_Mutex_Information, &the_mutex->Object );
87 pthread_mutex_t *
mutex,
121 #if defined(RTEMS_DEBUG) 125 return _POSIX_Mutex_Return_codes[the_mutex_status];
137 pthread_mutex_t *mutex,
150 pthread_mutex_t *mutex,
RTEMS_INLINE_ROUTINE POSIX_Mutex_Control * _POSIX_Mutex_Allocate(void)
POSIX Mutex Allocate.
Definition: muteximpl.h:60
void _Objects_Free(Objects_Information *information, Objects_Control *the_object)
Frees an object.
Definition: objectfree.c:25
RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Free(POSIX_Mutex_Control *the_mutex)
POSIX Mutex Free.
Definition: muteximpl.h:71
CORE Mutex Implementation.
Objects_Control * _Objects_Allocate(Objects_Information *information)
Allocates an object.
Definition: objectallocate.c:101
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
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)
Definition: mutexget.c:71
POSIX_EXTERN pthread_mutexattr_t _POSIX_Mutex_Default_attributes
The default mutex attributes structure.
Definition: muteximpl.h:39
const int _POSIX_Mutex_Return_codes[CORE_MUTEX_STATUS_LAST+1]
This array contains a mapping from Score Mutex return codes to POSIX return codes.
Definition: mutextranslatereturncode.c:23
POSIX_Mutex_Control * _POSIX_Mutex_Get(pthread_mutex_t *mutex, Objects_Locations *location)
POSIX Mutex Get (Thread Dispatch Disable)
Definition: mutexget.c:58
CORE_mutex_Status
The possible Mutex handler return statuses.
Definition: coremuteximpl.h:52
POSIX_EXTERN Objects_Information _POSIX_Mutex_Information
The following defines the information control block used to manage this class of objects.
Definition: muteximpl.h:34
int _POSIX_Mutex_Lock_support(pthread_mutex_t *mutex, bool blocking, Watchdog_Interval timeout)
POSIX Mutex Lock Support Method.
Definition: mutexlocksupp.c:38
RTEMS_INLINE_ROUTINE int _POSIX_Mutex_Translate_core_mutex_return_code(CORE_mutex_Status the_mutex_status)
Convert Score mutex status codes into POSIX status values.
Definition: muteximpl.h:114
uint32_t Watchdog_Interval
Type is used to specify the length of intervals.
Definition: watchdog.h:47
Objects_Locations
This enumerated type lists the locations which may be returned by _Objects_Get.
Definition: objectimpl.h:117
Local ISR lock context for acquire and release pairs.
Definition: isrlock.h:65
#define CORE_MUTEX_STATUS_LAST
The last status value.
Definition: coremuteximpl.h:99
#define POSIX_EXTERN
The following ensures that all data is declared in the space of the initialization routine for either...
Definition: basedefs.h:123
void _POSIX_Mutex_Manager_initialization(void)
POSIX Mutex Manager Initialization.
Definition: mutex.c:44