GeMRTOS
|
Related Functions | |
(Note that these are not member functions.) |
Sends a message to all the consumers. The function returns when the message was delivered to all the consumer or the timeout expires.
gk_MQ_send
[in] | prcb | Pointer to the RCB of the Message Queue |
[in] | pmsg | Pointer to the message to send |
[in] | msg_length | Lenght of the message to send |
[in] | timeout | Timeout to send the message |
|
related |
Unlinks an RCB from the RCBFL list and returns its pointer or NULL if no free RCB is available.
gk_RCB_GetFree
TCBs linked list for debugging
Definition at line 155 of file gemrtos_core.c.
Links the RCB of a resource to Free List.
gk_RCBFL_Link
[in] | presource | Pointer to the RCB of the resource |
RCBs linked list for debugging
Definition at line 851 of file listfunctions.c.
Links ECB to RCB granted list and return pointer to the ECB linked.
gk_RCBGEL_Link
[in] | presource | Pointer to the RCB of the resource |
[in] | pevent | Pointer to the ECB of the event. If NULL the a free ECB is chosen |
Definition at line 935 of file listfunctions.c.
Links an event ECB to the resource waiting list of RCB. If no ECB is given then a new ECB is obtained and the priority of the resource is given as the priority of the event.
gk_RCBWEL_Link
[in] | presource | Pointer to the RCB of the resource |
[in] | pevent | Pointer to the ECB of the event, NULL if an event should be return |
Definition at line 1054 of file listfunctions.c.
|
related |
This function is called when a resource event is kill. It has to resolve according the event type.
gk_RESOURCE_ECB_KILL_CALLBACK
[in] | pevent | Pointer to the ECB of the event related |
Definition at line 896 of file grtosuserfunctions.c.
Returns G_TRUE when TCB is blocked waiting for a resource.
gk_TASK_IS_BLOCKED
[in] | ptcb | Pointer to TCB |
Definition at line 2046 of file listfunctions.c.
|
related |
Creates an ECB to consume from a Message Queue.
gu_queue_consume
[in] | presource | Pointer of the G_RCB of the Message Queue |
[in] | pbuffer | Pointer to the buffer to store the messages consumed |
[in] | buffer_length | Length of the buffer |
[in] | timeout | Timeout for consuming |
The Message Queue should be created with gu_queue_create and the reading with gu_MQ_receive
|
related |
Lock the semaphore (get the semaphore) if it is avaible, otherwise waits for grant it.
gu_sem_wait
[in] | presource | Pointer to the semaphore t_semaphore_resource |
[in] | waiting_priority | priority to wait for the semaphore to be granted |
[in] | RCBGrantedPriority | Priority when semaphore is granted |
[in] | RCBWaitingTimeout | Timeout for waiting for the semaphore (0, no waiting for semaphore) |
[in] | RCBGrantedTimeout | Timeout for granted (0, no timeout when it is granted) |
[in] | blocking | If G_TRUE the blocks the executing waiting for the resource |
|
related |
|
related |