Searched refs:os_lock_ (Results 1 – 6 of 6) sorted by relevance
26 ::InitializeCriticalSectionAndSpinCount(&os_lock_, 2000); in Lock()30 ::DeleteCriticalSection(&os_lock_); in ~Lock()34 if (::TryEnterCriticalSection(&os_lock_) != FALSE) { in Try()41 ::EnterCriticalSection(&os_lock_); in Acquire()45 ::LeaveCriticalSection(&os_lock_); in Unlock()51 pthread_mutex_init(&os_lock_, NULL);55 pthread_mutex_destroy(&os_lock_);59 return (pthread_mutex_trylock(&os_lock_) == 0);63 pthread_mutex_lock(&os_lock_);67 pthread_mutex_unlock(&os_lock_);
54 OSLockType os_lock_;
14 ::InitializeCriticalSectionAndSpinCount(&os_lock_, 2000); in Lock()18 ::DeleteCriticalSection(&os_lock_); in ~Lock()22 ::EnterCriticalSection(&os_lock_); in Acquire()26 ::LeaveCriticalSection(&os_lock_); in Release()32 pthread_mutex_init(&os_lock_, NULL);36 pthread_mutex_destroy(&os_lock_);40 pthread_mutex_lock(&os_lock_);44 pthread_mutex_unlock(&os_lock_);
43 OSLockType os_lock_; variable