28 #ifndef INC_KERNEL_OC_QUEUE_H_ 29 #define INC_KERNEL_OC_QUEUE_H_ 34 #include <oc_stdlib.h> 41 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 45 #define oC_Queue(Type) Type* 47 typedef void * oC_Queue_t;
50 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 58 #define _________________________________________FUNCTIONS_SECTION_________________________________________________________________________ 63 extern bool oC_Queue_Delete ( oC_Queue_t * Queue );
64 extern bool oC_Queue_IsCorrect ( oC_Queue_t Queue );
65 extern bool oC_Queue_Put ( oC_Queue_t Queue ,
const void * Data , uint32_t Size , oC_Time_t Timeout );
66 extern bool oC_Queue_Get ( oC_Queue_t Queue ,
void * outData , uint32_t Size , oC_Time_t Timeout );
68 #undef _________________________________________FUNCTIONS_SECTION_________________________________________________________________________ identifier for allocations
The library with time definitions.
oC_Queue_t oC_Queue_New(Allocator_t Allocator, oC_MemorySize_t BufferSize)
allocates memory for a queue
static const oC_Allocator_t Allocator