C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
QueueServiceInterface Struct Reference

Queue Service interface. More...

Data Fields

bool(* create )(INSTANCE(this), struct QueueObject **queue, unsigned depth, unsigned size)
 Create new queue.
 

Detailed Description

Queue Service interface.

This is an interface of queue manager. It offers a method to allocate new queues.

Field Documentation

◆ create

bool(* QueueServiceInterface::create) (INSTANCE(this), struct QueueObject **queue, unsigned depth, unsigned size)

Create new queue.

This method will allocate new queue instance, if one is available. Queue will be allocated using properties determined by the call:

Parameters
[out]queuepointer to place where handle to queue created will be saved
[in]depthamount of items queue should be able to store
[in]sizesize of one item
Returns
true if queue was allocated, false if there is no free queue or queue does not have sufficient storage for creating queue that can hold depth items of size bytes each.