the semaphore event wakeup function for wait_event().
wait on a semaphore.
implemented with wait_event().
non-blocking check on a semaphore.
this is IRQ handler safe.
increase semaphore count.
-0.1.7 is released under
Mozilla Public License.
Original code © 1998-1999 by Markus L. Noga.