< prev index next >

src/os/posix/vm/os_posix.cpp

Print this page

        

*** 1023,1033 **** } while (false) // POSIX unamed semaphores are not supported on OS X. #ifndef __APPLE__ ! Semaphore::Semaphore(uint value, uint /* max */) { int ret = sem_init(&_semaphore, 0, value); assert_with_errno(ret == 0, "Failed to initialize semaphore"); } --- 1023,1033 ---- } while (false) // POSIX unamed semaphores are not supported on OS X. #ifndef __APPLE__ ! Semaphore::Semaphore(uint value) { int ret = sem_init(&_semaphore, 0, value); assert_with_errno(ret == 0, "Failed to initialize semaphore"); }
< prev index next >