Planning better async
authorJohn Hodge <[email protected]>
Sun, 22 Jan 2012 13:17:24 +0000 (21:17 +0800)
committerJohn Hodge <[email protected]>
Sun, 22 Jan 2012 13:17:24 +0000 (21:17 +0800)
Notes/20120122-Events.txt [new file with mode: 0644]

diff --git a/Notes/20120122-Events.txt b/Notes/20120122-Events.txt
new file mode 100644 (file)
index 0000000..b44e846
--- /dev/null
@@ -0,0 +1,16 @@
+Per-thread event system
+
+enum eEvents
+{
+       EVENT_VFS,
+       EVENT_IPCMESSAGE,
+       ...
+};
+
+Uint32 tThread.ActiveEvents
+tSemaphore     tThread.EventSemaphore
+
+
+Threads_PostEvent(tThread *, int EventID);
+Threads_WaitEvents(Uint32 Mask);
+- Clears events watched when wait is over

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