Home
last modified time | relevance | path

Searched refs:os_lock_ (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/third_party/sfntly/cpp/src/sfntly/port/
Dlock.cc26 ::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_);
Dlock.h54 OSLockType os_lock_;
/external/sfntly/cpp/src/sfntly/port/
Dlock.cc26 ::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_);
Dlock.h54 OSLockType os_lock_;
/external/chromium_org/ppapi/utility/threading/
Dlock.cc14 ::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_);
Dlock.h43 OSLockType os_lock_; variable