ec_message_enqueue
Last updated March 2020
Name
ec_message_enqueue — Enqueue a message
Synopsis
#include "message.h"
| int **ec_message_enqueue** (
| message, | |
| | now)
; | |
Description
Perform a message enqueue operation (either delayed OR active queue).
- message
-
A pointer to an ec_message struct. For documentation of this data structure see “ec_message”
- now
-
A pointer to a timeval struct.
This function returns an int. It returns 0 on success (which could mean the message has already been delivered) or -1 on error, but the error generally only happens if the recipient is invalid (which typically should not happen). The message MUST NOT be in any queue in the system otherwise the system will abort and shutdown.
It is legal to call this function in the Scheduler
thread.
See Also
Was this page helpful?