X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fkern%2Fsignal.c;h=3fa8d3700cc686f2f499e35a80de28632ddd319d;hb=42469af0705dcaaa8fa7341392716cd8d4d625da;hp=68abeb8874651a370612432b14865f9261b05950;hpb=523c070f86a34c68404a3c2451c150e6f9c3f6f2;p=bertos.git diff --git a/bertos/kern/signal.c b/bertos/kern/signal.c index 68abeb88..3fa8d370 100644 --- a/bertos/kern/signal.c +++ b/bertos/kern/signal.c @@ -141,29 +141,6 @@ // Check config dependencies CONFIG_DEPEND(CONFIG_KERN_SIGNALS, CONFIG_KERN); -/** - * Check if any of the signals in \a sigs has occurred and clear them. - * - * \return the signals that have occurred. - */ -sigmask_t sig_checkSignal(Signal *s, sigmask_t sigs) -{ - sigmask_t result; - cpu_flags_t flags; - - IRQ_SAVE_DISABLE(flags); - result = s->recv & sigs; - s->recv &= ~sigs; - IRQ_RESTORE(flags); - - return result; -} - - -/** - * Sleep until any of the signals in \a sigs occurs. - * \return the signal(s) that have awoken the process. - */ sigmask_t sig_waitSignal(Signal *s, sigmask_t sigs) { sigmask_t result;