Add a spinning barrier to synch.c, also make semaphores as well as locks

Add a spinning barrier to synch.c, also make semaphores as well as locks (I think) safe for parallel threads.

Merge request reports

Loading