Choco OS  V.0.16.9.0
Join to the chocolate world
oc_queue.h
Go to the documentation of this file.
1 
28 #ifndef INC_KERNEL_OC_QUEUE_H_
29 #define INC_KERNEL_OC_QUEUE_H_
30 
31 #include <stdbool.h>
32 #include <stdint.h>
33 #include <oc_time.h>
34 #include <oc_stdlib.h>
35 
41 #define _________________________________________TYPES_SECTION______________________________________________________________________________
42 
45 #define oC_Queue(Type) Type*
46 
47 typedef void * oC_Queue_t;
48 
49 
50 #undef _________________________________________TYPES_SECTION______________________________________________________________________________
51 
58 #define _________________________________________FUNCTIONS_SECTION_________________________________________________________________________
59 
62 extern oC_Queue_t oC_Queue_New ( Allocator_t Allocator , oC_MemorySize_t BufferSize );
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 );
67 
68 #undef _________________________________________FUNCTIONS_SECTION_________________________________________________________________________
69 
71 #endif /* INC_KERNEL_OC_QUEUE_H_ */
identifier for allocations
Definition: oc_stdlib.h:159
The library with time definitions.
oC_Queue_t oC_Queue_New(Allocator_t Allocator, oC_MemorySize_t BufferSize)
allocates memory for a queue
Definition: oc_queue.c:89
static const oC_Allocator_t Allocator
Definition: oc_eth.c:152