X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fsignal.h;h=06c50220334ecc35ca9e57ed214e95d138301a62;hb=a5a4e29851b8de831681013945abe8764c594cec;hp=de3dc5ec7e80385b1e25f8860c36dc5284a5051d;hpb=f87964692a608f5dc71d84418f9ffa2b70d54368;p=bertos.git diff --git a/bertos/kern/signal.h b/bertos/kern/signal.h index de3dc5ec..06c50220 100644 --- a/bertos/kern/signal.h +++ b/bertos/kern/signal.h @@ -31,14 +31,13 @@ * * --> * - * \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,16 +45,29 @@ #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); +int signal_testRun(void); +int signal_testSetup(void); +int signal_testTearDown(void); /** * \name Signal definitions