Home | History | Annotate | Download | only in platform

Lines Matching defs:Mutex

5 #include "src/base/platform/mutex.h"
14 static V8_INLINE void InitializeNativeHandle(pthread_mutex_t* mutex) {
17 // Use an error checking mutex in debug mode.
23 result = pthread_mutex_init(mutex, &attr);
27 // Use a fast mutex (default attributes).
28 result = pthread_mutex_init(mutex, NULL);
35 static V8_INLINE void InitializeRecursiveNativeHandle(pthread_mutex_t* mutex) {
41 result = pthread_mutex_init(mutex, &attr);
49 static V8_INLINE void DestroyNativeHandle(pthread_mutex_t* mutex) {
50 int result = pthread_mutex_destroy(mutex);
56 static V8_INLINE void LockNativeHandle(pthread_mutex_t* mutex) {
57 int result = pthread_mutex_lock(mutex);
63 static V8_INLINE void UnlockNativeHandle(pthread_mutex_t* mutex) {
64 int result = pthread_mutex_unlock(mutex);
70 static V8_INLINE bool TryLockNativeHandle(pthread_mutex_t* mutex) {
71 int result = pthread_mutex_trylock(mutex);
113 Mutex::Mutex() {
121 Mutex::~Mutex() {
127 void Mutex::Lock() {
133 void Mutex::Unlock() {
139 bool Mutex::TryLock() {