Porting to OS/2: Case #25 POSIX semaphores
POSIX semaphores are used to control the execution of threads. There are unnamed semaphores and named semaphores. Although named semaphores are always shareable between processes, unnamed semaphores may be private or shareable between processes.
Out of these, implementation of unnamed private semaphore is here.
Out of these, implementation of unnamed private semaphore is here.
- source: https://github.com/komh/os2compat/blob/master/thread/semaphore.c
- header: https://github.com/komh/os2compat/blob/master/thread/semaphore.h
- test: https://github.com/komh/os2compat/blob/master/testcase/semaphore-1.c
댓글
댓글 쓰기