GeMRTOS
Functions
mq.c File Reference

GRTOS Message queue functions. More...

Go to the source code of this file.

Detailed Description

GRTOS Message queue functions.

Author
Ricardo Cayssials

This file contains the Message queue functions.

Version
0.9a
Date
2015-2020
Bug:
None known
Warning
This product was produced by Ricardo Cayssials in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
DISCLAIMER OF WARRANTY. THIS PRODUCT IS LICENSED "AS IS." YOU BEAR THE RISK OF USING IT.
RICARDO CAYSSIALS GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS. TO THE EXTENT PERMITTED UNDER APPLICABLE LAWS, RICARDO CAYSSIALS EXCLUDES ALL IMPLIED WARRANTIES, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.

Definition in file mq.c.

Function Documentation

◆ gk_QUEUE_granted_kill()

INT32 gk_QUEUE_granted_kill ( GS_ECB pevent)

Definition at line 396 of file mq.c.

◆ gu_MQ_consumer_mark_read()

INT32 gu_MQ_consumer_mark_read ( GS_ECB pevent)

Mark the current buffer as read.

gu_MQ_consumer_mark_read

Parameters
[in]peventPointer to the ECB associated as consumer to the Message Queue
Returns
G_TRUE when successful, G_FALSE otherwise

This function has to be executed to enable the reading of the next message

Definition at line 331 of file mq.c.

◆ gu_queue_create()

G_RCB* gu_queue_create ( void *  pbuffer,
INT32  buffer_length 
)

Create a Resource for Queue with default settings.

Parameters
[in]pbufferPointer to the buffer where data sent to the queue will be transfered.
[in]buffer_lengthLength of the buffer of the queue
Returns
Return a pointer to the resource of the Queue, or 0 if there is not more resources availables

A memory buffer should be summited in order to store the data sent to the queue.

Definition at line 185 of file mq.c.