X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fsignal.h;h=bef44a9eb628f5c8bdd6dcb741287a0d372759a7;hb=c4c3ad2edbffae2b04e5d22d6fa3fa5de6feeb68;hp=1118af8a54ee7b9d2511f084c758a1889dc0afeb;hpb=e423e63cade618baf616a79b99aaab5de74ec76e;p=bertos.git diff --git a/bertos/kern/signal.h b/bertos/kern/signal.h index 1118af8a..bef44a9e 100644 --- a/bertos/kern/signal.h +++ b/bertos/kern/signal.h @@ -31,14 +31,14 @@ * * --> * - * \brief Signal module (public interface). + * \brief Signal module for IPC. * * \version $Id$ * * \author Bernie Innocenti * * $WIZ$ module_name = "signal" - * $WIZ$ module_depends = "kernel" + * $WIZ$ module_depends = "kernel", "timer" * $WIZ$ module_configuration = "bertos/cfg/cfg_signal.h" */ @@ -46,13 +46,23 @@ #define KERN_SIGNAL_H #include +#include // BV() /* Fwd decl */ struct Process; /* Inter-process Communication services */ sigmask_t sig_check(sigmask_t sigs); -void sig_signal(struct Process *proc, sigmask_t sig); +void sig_send(struct Process *proc, sigmask_t sig); +void sig_post(struct Process *proc, sigmask_t sig); +/* + * XXX: this is provided for backword compatibility, consider to make this + * deprecated for the future. + */ +INLINE void sig_signal(struct Process *proc, sigmask_t sig) +{ + sig_post(proc, sig); +} sigmask_t sig_wait(sigmask_t sigs); sigmask_t sig_waitTimeout(sigmask_t sigs, ticks_t timeout);