📚 The CoCalc Library - books, templates and other resources
1/* Example code for Think OS 2 3Copyright 2015 Allen Downey 4License: Creative Commons Attribution-ShareAlike 3.0 5 6*/ 7 8typedef sem_t Semaphore; 9 10Semaphore *make_semaphore(int value); 11void semaphore_wait(Semaphore *sem); 12void semaphore_signal(Semaphore *sem); 13 14