5 #ifndef V8_BASE_PLATFORM_CONDITION_VARIABLE_H_ 6 #define V8_BASE_PLATFORM_CONDITION_VARIABLE_H_ 8 #include "src/base/base-export.h" 9 #include "src/base/lazy-instance.h" 10 #include "src/base/platform/mutex.h" 16 class ConditionVariableEvent;
51 void Wait(
Mutex* mutex);
60 bool WaitFor(
Mutex* mutex,
const TimeDelta& rel_time) V8_WARN_UNUSED_RESULT;
64 typedef pthread_cond_t NativeHandle;
66 typedef CONDITION_VARIABLE NativeHandle;
69 NativeHandle& native_handle() {
70 return native_handle_;
72 const NativeHandle& native_handle()
const {
73 return native_handle_;
77 NativeHandle native_handle_;
96 #define LAZY_CONDITION_VARIABLE_INITIALIZER LAZY_STATIC_INSTANCE_INITIALIZER 101 #endif // V8_BASE_PLATFORM_CONDITION_VARIABLE_H_