signal: speed up sig_check()
[bertos.git] / bertos / kern / signal.c
index 68abeb8874651a370612432b14865f9261b05950..3fa8d3700cc686f2f499e35a80de28632ddd319d 100644 (file)
 // 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;