From: John Hodge Date: Sun, 22 Jan 2012 13:17:24 +0000 (+0800) Subject: Planning better async X-Git-Tag: rel0.15~792^2~23 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=dbea00485f339d746467bfef19bef7ee547cba39;p=tpg%2Facess2.git Planning better async --- diff --git a/Notes/20120122-Events.txt b/Notes/20120122-Events.txt new file mode 100644 index 00000000..b44e8467 --- /dev/null +++ b/Notes/20120122-Events.txt @@ -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