5 #ifndef V8_BASE_PLATFORM_SEMAPHORE_H_ 6 #define V8_BASE_PLATFORM_SEMAPHORE_H_ 8 #include "src/base/base-export.h" 9 #include "src/base/lazy-instance.h" 11 #include "src/base/win32-headers.h" 15 #include <mach/semaphore.h> 17 #include <semaphore.h> 50 bool WaitFor(
const TimeDelta& rel_time) V8_WARN_UNUSED_RESULT;
53 typedef semaphore_t NativeHandle;
55 typedef sem_t NativeHandle;
57 typedef HANDLE NativeHandle;
60 NativeHandle& native_handle() {
61 return native_handle_;
63 const NativeHandle& native_handle()
const {
64 return native_handle_;
68 NativeHandle native_handle_;
97 #define LAZY_SEMAPHORE_INITIALIZER LAZY_DYNAMIC_INSTANCE_INITIALIZER 102 #endif // V8_BASE_PLATFORM_SEMAPHORE_H_