5 #ifndef V8_BASE_PLATFORM_SEMAPHORE_H_
6 #define V8_BASE_PLATFORM_SEMAPHORE_H_
14 #include <mach/semaphore.h>
34 class Semaphore
FINAL {
61 return native_handle_;
64 return native_handle_;
68 NativeHandle native_handle_;
87 return new Semaphore(
N);
97 #define LAZY_SEMAPHORE_INITIALIZER LAZY_DYNAMIC_INSTANCE_INITIALIZER
DISALLOW_COPY_AND_ASSIGN(Semaphore)
Mutex::NativeHandle NativeHandle
const NativeHandle & native_handle() const
bool WaitFor(const TimeDelta &rel_time) WARN_UNUSED_RESULT
NativeHandle & native_handle()
#define WARN_UNUSED_RESULT
typedef HANDLE(__stdcall *DLL_FUNC_TYPE(CreateToolhelp32Snapshot))(DWORD dwFlags
Debugger support for the V8 JavaScript engine.
static Semaphore * Create()
LazyDynamicInstance< Semaphore, CreateSemaphoreTrait< N >, ThreadSafeInitOnceTrait >::type type