 | RTX166 Tiny User's Guide |  |
|
|
| os_wait_signal| Summary |
#include <rtx166t.h>
int os_wait_signal (void);
| | Description | The os_wait_signal function halts the current task and waits for a signal from another task or interrupt. Note - This function is part of the RTX166 Tiny Real-Time Operating System.
| | Return Value | When a signal is received, the task is put in the READY state. When the task resumes execution, os_wait_signal returns the SIG_EVENT manifest constant to indicate that a signal was received. | | See Also | isr_send_signal, os_clear_signal, os_send_signal, os_wait | | Example |
#include <rtx166t.h>
void tst_os_wait_signal (void) _task_ 5
{
while (1)
{
os_wait_signal (); /* wait for a signal */
}
}
|
|
|