Implement a few non-blocking MP functions:
authorMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 26 Aug 2015 16:31:19 +0000 (12:31 -0400)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Wed, 26 Aug 2015 16:31:19 +0000 (12:31 -0400)
commit5e43ec8789ef0df62b90489a03996ae938e1baa3
tree658e8529975180a4593069a65a4fe4968470837a
parentc4e3e849a1ff20e8a7dd06849a8105a6fe31347c
 Implement a few non-blocking MP functions:

 MP:TRY-GET-SEMAPHORE
   returns NIL if the semaphore could not be obtained, or the count
   if it could be obtained

 MP:MAILBOX-TRY-READ
   returns a message if it's available, NIL if the queue is empty

 MP:MAILBOX-TRY-SEND
   returns the sent message if it could be queued, or NIL
   (mailbox is full)
src/c/symbols_list.h
src/c/symbols_list2.h
src/c/threads/mailbox.d
src/c/threads/semaphore.d
src/h/external.h