X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fsignal.h;h=bef44a9eb628f5c8bdd6dcb741287a0d372759a7;hb=7b47f57c871da92ea81d28a18f91fae04f3072b3;hp=9e6a9b09c0b60701e44991892ec7aee03452d68e;hpb=c83101e6bea1c407299a5e758df54a24a7117151;p=bertos.git diff --git a/bertos/kern/signal.h b/bertos/kern/signal.h index 9e6a9b09..bef44a9e 100644 --- a/bertos/kern/signal.h +++ b/bertos/kern/signal.h @@ -53,7 +53,16 @@ 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);