Merge branch 'welash/frotz-mac_sema'
authorDavid Griffith <dave@661.org>
Sat, 29 Jun 2019 00:45:26 +0000 (17:45 -0700)
committerDavid Griffith <dave@661.org>
Sat, 29 Jun 2019 00:45:26 +0000 (17:45 -0700)
commitd59ff738836822b4b9957f14245bde61b2e578e7
tree6d6314e83902b0cc1c8308b53af28a9dd854d74c
parentec3800185a7cf29f91e5cd8da3cbf08a272adcfd
parent14d7908c932f3db5ba55965ece40126f584f702d
Merge branch 'welash/frotz-mac_sema'

Because MacOS lacks support for unnamed POSIX semaphores, this wrapper
code was added.  For MacOS, it uses Grand Central Dispatch semaphores,
otherwise standard POSIX unnamed semaphores are used.  Currently return
codes are not checked.  Eventually this code will be gone over and
turned into a generic drop-in for other projects needing to reconcile
unnamed semaphores with the Apple Way.  At that point, structure and
function names will be changed and return codes will be checked.
Because this is intended for later widespread re-use, ux_sema.h is
dual-licensed GPL and MIT.