extern RT_TASK* rt_send
(RT_TASK* task, unsigned int msg);
SYNOPSIS
#include "rtl_sched.h"
DESCRIPTION
Sends the message msg to the task task, and
blocks itself until the message is received.
If more message are sent to a task, they are received
in a priority order.
RETURN VALUE
On success, the pointer to the task that received the message
is returned. On failure, a negative value is returned. Zero is returned
if the task is unblocked but no valid message has been sent ( e.g. the
task task has been killed before receiving message).
ERRORS
task does not refer to a valid task
extern RT_TASK* rt_send_if
(RT_TASK* task, unsigned int msg);
SYNOPSIS
#include "rtl_sched.h"
DESCRIPTION
Sends the message msg to the task task only
if the latter is ready to receive.
RETURN VALUE
On success, the pointer to the task that received the message
is returned. On failure, a negative value is returned. Zero is returned
if the task is unblocked but no valid message has been sent ( e.g. the
task task has been killed before receiving message).
ERRORS
task does not refer to a valid task
extern RT_TASK* rt_send_until
(RT_TASK* task, unsigned int msg,
RTIME time);
SYNOPSIS
#include "rtl_sched.h"
DESCRIPTION
Sends the message msg to the task task. If
task is not ready to receive, queues up in priority order till the message
is received or time is reached, whichever happens first.
RETURN VALUE
On success, the pointer to the task that received the message
is returned. On failure, a negative value is returned. Zero is returned
if the task is unblocked but no valid message has been sent ( e.g. the
task task has been killed before receiving message).
ERRORS
task does not refer to a valid task
extern RT_TASK* rt_send_timed
(RT_TASK* task, unsigned int msg,
RTIME delay);
SYNOPSIS
#include "rtl_sched.h"
DESCRIPTION
Sends the message msg to the task task. If
task is not ready to receive, queues up in priority order till the message
is received or a period delay is passed, whichever happens first.
RETURN VALUE
On success, the pointer to the task that received the message
is returned. On failure, a negative value is returned. Zero is returned
if the task is unblocked but no valid message has been sent ( e.g. the
task task has been killed before receiving message).
ERRORS
task does not refer to a valid task