RTX51 Tiny User's Guide

os_send_signal

Summary
#include <rtx51tny.h>

char os_send_signal (
  char task_id);     /* Task to signal */
Description

The os_send_signal function sends a signal to task task_id. If the specified task is already waiting for a signal, this function call readies the task for execution but does not start it. Otherwise, the signal is stored in the signal flag of the task.

Note

  • This function is part of the RTX51 Tiny Real-Time Operating System which is included only with the PK51 Professional Developer's Kit.
Return Value

The os_send_signal function returns a value of 0 if successful and -1 if the specified task does not exist.

See Also

isr_send_signal, os_clear_signal, os_wait

Example
#include <rtx51tny.h>

void signal_func (void) _task_ 2
{
.
.
.
os_send_signal (8);        /* signal task #8 */
.
.
.
}

void tst_os_send_signal (void) _task_ 8
{
.
.
.
os_send_signal (2);        /* signal task #2 */
.
.
.
}