|
| os_send_signal| Summary | | | 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 RTX166 Tiny Real-Time Operating System.
| | Return Value | The os_send_signal function returns a value of 0 if the signal was set successfully, a value of 1 if the signal was already set, and a value of -1 if the specified task does not exist. | | See Also | isr_send_signal, os_clear_signal, os_wait, os_wait_signal | | Example |
#include <rtx166t.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 */
.
.
.
}
|
Related Knowledgebase Articles |
|