Kernel - Added another event and allowed clearing of events
[tpg/acess2.git] / KernelLand / Kernel / events.c
index a9eab78..da095e9 100644 (file)
@@ -41,6 +41,14 @@ void Threads_PostEvent(tThread *Thread, Uint32 EventMask)
        LEAVE('-');
 }
 
+/**
+ * \brief Clear an event without waiting
+ */
+void Threads_ClearEvent(Uint32 EventMask)
+{
+       Proc_GetCurThread()->EventState &= ~EventMask;
+}
+
 /**
  * \brief Wait for an event to occur
  */

UCC git Repository :: git.ucc.asn.au