< prev index next >

src/os/bsd/vm/semaphore_bsd.hpp

Print this page

        

*** 23,40 **** */ #ifndef OS_BSD_VM_SEMAPHORE_BSD_HPP #define OS_BSD_VM_SEMAPHORE_BSD_HPP - #include "memory/allocation.hpp" - - #include <semaphore.h> - #ifndef __APPLE__ # include "semaphore_posix.hpp" #else // OS X doesn't support unamed POSIX semaphores, so the implementation in os_posix.cpp can't be used. class OSXSemaphore : public CHeapObj<mtInternal>{ semaphore_t _semaphore; // Prevent copying and assignment. --- 23,40 ---- */ #ifndef OS_BSD_VM_SEMAPHORE_BSD_HPP #define OS_BSD_VM_SEMAPHORE_BSD_HPP #ifndef __APPLE__ + // Use POSIX semaphores. # include "semaphore_posix.hpp" + #else // OS X doesn't support unamed POSIX semaphores, so the implementation in os_posix.cpp can't be used. + # include "memory/allocation.hpp" + # include <mach/semaphore.h> class OSXSemaphore : public CHeapObj<mtInternal>{ semaphore_t _semaphore; // Prevent copying and assignment.
< prev index next >