X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fsignal.h;h=408e21e97538f2764b042fd7cb76fbccec8a5dd8;hb=c6e4a2a7324033d4c9cf378297631fb7d4af81d0;hp=af3aed6b580ddf7bd31ce69cadf38f848ecfc6d0;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/kern/signal.h b/bertos/kern/signal.h index af3aed6b..408e21e9 100644 --- a/bertos/kern/signal.h +++ b/bertos/kern/signal.h @@ -27,33 +27,51 @@ * the GNU General Public License. * * Copyright 2004 Develer S.r.l. (http://www.develer.com/) - * Copyright 1999,2000,2001 Bernardo Innocenti + * Copyright 1999,2000,2001 Bernie Innocenti * * --> * - * \brief Signal module (public interface). + * \defgroup kern_signal Kernel signals + * \ingroup kern + * \{ + * + * \brief Signal module for IPC. * - * \version $Id$ * - * \author Bernardo Innocenti + * \author Bernie Innocenti + * + * $WIZ$ module_name = "signal" + * $WIZ$ module_depends = "kernel", "timer" + * $WIZ$ module_configuration = "bertos/cfg/cfg_signal.h" */ - #ifndef KERN_SIGNAL_H #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 @@ -69,4 +87,6 @@ sigmask_t sig_waitTimeout(sigmask_t sigs, ticks_t timeout); #define SIG_SINGLE BV(7) /**< Used to wait for a single event */ /*\}*/ +/* \} */ //defgroup kern_signal + #endif /* KERN_SIGNAL_H */