Keil Logo

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 */
  }
}
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.