28 #ifndef INC_KERNEL_OC_MUTEX_H_ 29 #define INC_KERNEL_OC_MUTEX_H_ 33 #include <oc_stdlib.h> 40 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 48 oC_Mutex_Type_Normal ,
49 oC_Mutex_Type_Recursive
52 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 60 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 64 extern oC_Mutex_t oC_Mutex_New ( oC_Mutex_Type_t Type ,
Allocator_t Allocator , AllocationFlags_t AllocationFlags );
65 extern bool oC_Mutex_Delete ( oC_Mutex_t * Mutex , AllocationFlags_t AllocationFlags );
66 extern bool oC_Mutex_Give ( oC_Mutex_t Mutex );
67 extern bool oC_Mutex_Take ( oC_Mutex_t Mutex , oC_Time_t Timeout );
68 extern bool oC_Mutex_IsCorrect ( oC_Mutex_t Mutex );
70 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ identifier for allocations
The library with time definitions.
static const oC_Allocator_t Allocator