BeRTOS
Functions
signal.h File Reference
#include <cfg/compiler.h>
#include <cfg/macros.h>
#include <cpu/irq.h>
#include <kern/proc.h>

Go to the source code of this file.

Defines

Signal definitions
#define SIG_USER0   BV(0)
 Free for user usage.
#define SIG_USER1   BV(1)
 Free for user usage.
#define SIG_USER2   BV(2)
 Free for user usage.
#define SIG_USER3   BV(3)
 Free for user usage.
#define SIG_SINGLE   BV(4)
 Used to wait for a single event.
#define SIG_SYSTEM5   BV(5)
 Reserved for internal system use.
#define SIG_SYSTEM6   BV(6)
 Reserved for internal system use.
#define SIG_TIMEOUT   BV(7)
 Reserved for timeout use.
#define SIG_USER_MAX   SIG_SINGLE
 Max number of signals that can be used by drivers or user applications.

Functions

sigmask_t sig_checkSignal (Signal *s, sigmask_t sigs)
 Check if any of the signals in sigs has occurred and clear them.
sigmask_t sig_check (sigmask_t sigs)
 Check if any of the signals in sigs has occurred and clear them.
void sig_send (Process *proc, sigmask_t sig)
 Send the signals sigs to the process proc and immeditaly dispatch it for execution.
void sig_post (Process *proc, sigmask_t sig)
 Send the signals sigs to the process proc.
sigmask_t sig_wait (sigmask_t sigs)
 Sleep until any of the signals in sigs occurs.
sigmask_t sig_waitTimeout (sigmask_t sigs, ticks_t timeout)
 Sleep until any of the signals in sigs or timeout ticks elapse.

Detailed Description

Definition in file signal.h.