HomeSort by relevance Sort by last modified time
    Searched refs:Lock (Results 1 - 25 of 957) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/ppapi/utility/threading/
lock.cc 5 #include "ppapi/utility/threading/lock.h"
11 Lock::Lock() {
17 Lock::~Lock() {
21 void Lock::Acquire() {
25 void Lock::Release() {
31 Lock::Lock() {
35 Lock::~Lock()
    [all...]
lock.h 16 /// A simple wrapper around a platform-specific lock. See also AutoLock.
17 class Lock {
19 /// Creates a lock in the "not held" state.
20 Lock();
22 /// Destroys the lock.
23 ~Lock();
25 /// Acquires the lock, blocking if it's already held by a different thread.
26 /// The lock must not already be held on the current thread (i.e. recursive
30 /// acquire and release the lock.
33 /// Releases the lock. This must be paired with a call to Acquire()
    [all...]
  /external/sfntly/cpp/src/sfntly/port/
lock.cc 17 #include "sfntly/port/lock.h"
23 Lock::Lock() {
29 Lock::~Lock() {
33 bool Lock::Try() {
40 void Lock::Acquire() {
44 void Lock::Unlock() {
50 Lock::Lock() {
    [all...]
lock.h 37 class Lock {
39 Lock();
40 ~Lock();
42 // If the lock is not held, take it and return true. If the lock is already
46 // Take the lock, blocking until it is available if necessary.
49 // Release the lock. This must only be called by the lock's holder: after
50 // a successful call to Try, or a call to Lock.
55 NO_COPY_AND_ASSIGN(Lock);
    [all...]
  /external/chromium/crypto/
mac_security_services_lock.h 10 class Lock;
21 base::Lock& GetMacSecurityServicesLock();
mac_security_services_lock.cc 8 #include "base/synchronization/lock.h"
21 base::Lock& lock() { return lock_; } function in class:__anon5301::SecurityServicesSingleton
29 base::Lock lock_;
38 base::Lock& GetMacSecurityServicesLock() {
39 return SecurityServicesSingleton::GetInstance()->lock();
  /external/chromium_org/crypto/
mac_security_services_lock.h 11 class Lock;
21 CRYPTO_EXPORT base::Lock& GetMacSecurityServicesLock();
mac_security_services_lock.cc 8 #include "base/synchronization/lock.h"
21 base::Lock& lock() { return lock_; } function in class:__anon10571::SecurityServicesSingleton
29 base::Lock lock_;
38 base::Lock& GetMacSecurityServicesLock() {
39 return SecurityServicesSingleton::GetInstance()->lock();
  /libcore/luni/src/main/java/java/util/concurrent/locks/
ReadWriteLock.java 11 * Lock locks}, one for read-only operations and one for writing.
12 * The {@link #readLock read lock} may be held simultaneously by
14 * {@link #writeLock write lock} is exclusive.
18 * (as specified in the {@link Lock} interface) also hold with respect
20 * acquiring the read lock will see all updates made upon previous
21 * release of the write lock.
23 * <p>A read-write lock allows for a greater level of concurrency in
24 * accessing shared data than that permitted by a mutual exclusion lock.
30 * lock will lead to performance improvements over the use of a mutual
31 * exclusion lock. In practice this increase in concurrency will only be full
    [all...]
  /external/clang/test/SemaCXX/
operator-arrow-temporary.cpp 8 template<int x> struct Lock {
9 ~Lock() { int a[x]; } // expected-error {{declared as an array with a negative size}}
14 Lock<-1> operator->();
17 // Make sure we try to instantiate the destructor for Lock here
  /external/chromium_org/gpu/command_buffer/client/
atomicops.h 17 class GPU_EXPORT Lock {
19 Lock();
20 ~Lock();
29 DISALLOW_COPY_AND_ASSIGN(Lock);
32 // A helper class that acquires the given Lock while the AutoLock is in scope.
35 explicit AutoLock(Lock& lock) : lock_(lock) {
45 Lock& lock_;
atomicops.cc 10 #include "base/synchronization/lock.h"
70 class LockImpl : public base::Lock {
75 Lock::Lock()
79 Lock::~Lock() {
82 void Lock::Acquire() {
86 void Lock::Release() {
90 bool Lock::Try() {
94 void Lock::AssertAcquired() const
    [all...]
  /external/chromium_org/base/synchronization/
lock.cc 5 // This file is used for debugging assertion support. The Lock class
11 #include "base/synchronization/lock.h"
18 Lock::Lock() : lock_() {
23 Lock::~Lock() {
28 void Lock::AssertAcquired() const {
33 void Lock::CheckHeldAndUnmark() {
40 void Lock::CheckUnheldAndMark() {
lock.h 17 class BASE_EXPORT Lock {
20 Lock() : lock_() {}
21 ~Lock() {}
22 void Acquire() { lock_.Lock(); }
25 // If the lock is not held, take it and return true. If the lock is already
27 // by a thread already holding the lock (what happens is undefined and an
34 Lock();
35 ~Lock();
39 // acquire the lock a second time (while already holding it)
    [all...]
  /external/chromium/base/synchronization/
lock.cc 5 // This file is used for debugging assertion support. The Lock class
11 #include "base/synchronization/lock.h"
16 Lock::Lock() : lock_() {
21 void Lock::AssertAcquired() const {
26 void Lock::CheckHeldAndUnmark() {
33 void Lock::CheckUnheldAndMark() {
lock.h 18 class BASE_API Lock {
21 Lock() : lock_() {}
22 ~Lock() {}
23 void Acquire() { lock_.Lock(); }
26 // If the lock is not held, take it and return true. If the lock is already
28 // by a thread already holding the lock (what happens is undefined and an
35 Lock();
36 ~Lock() {}
40 // acquire the lock a second time (while already holding it)
    [all...]
  /external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/synchronization/
lock_posix.h 28 class Lock {
30 Lock() {
36 ~Lock() {
55 DISALLOW_COPY_AND_ASSIGN(Lock);
lock.h 26 typedef boost::mutex Lock;
37 // Dummy lock implementation on non-POSIX platforms. If you are running on a
45 class Lock {
47 Lock() : thread_checker_() {}
73 AutoLock(Lock& lock) : lock_(lock) {
82 Lock& lock_;
  /external/chromium_org/skia/ext/
SkThread_chrome.cc 12 #include "base/synchronization/lock.h"
70 COMPILE_ASSERT(sizeof(base::Lock) <= sizeof(fStorage), Lock_is_too_big_for_SkMutex);
71 base::Lock* lock = reinterpret_cast<base::Lock*>(fStorage); local
72 new(lock) base::Lock();
76 base::Lock* lock = reinterpret_cast<base::Lock*>(fStorage) local
81 base::Lock* lock = reinterpret_cast<base::Lock*>(fStorage); local
86 base::Lock* lock = reinterpret_cast<base::Lock*>(fStorage); local
    [all...]
  /external/chromium_org/base/ios/
scoped_critical_action.h 8 #include "base/synchronization/lock.h"
40 Lock background_task_id_lock_;
  /external/chromium_org/base/third_party/dmg_fp/
dtoa_wrapper.cc 9 #include "base/synchronization/lock.h"
12 // A single lock would lead to an attempted recursive grab.
13 static base::LazyInstance<base::Lock>::Leaky
15 static base::LazyInstance<base::Lock>::Leaky
25 * by FREE_DTOA_LOCK(n) for n = 0 or 1. (The second lock, accessed
27 * powers of 5; omitting this lock would introduce a small
36 base::Lock* lock = n == 0 ? dtoa_lock_0.Pointer() : dtoa_lock_1.Pointer();
37 lock->Acquire();
42 base::Lock* lock = n == 0 ? dtoa_lock_0.Pointer() : dtoa_lock_1.Pointer()
    [all...]
  /external/chromium_org/ppapi/utility/
completion_callback_factory_thread_traits.h 10 #include "ppapi/utility/threading/lock.h"
33 /// Implementation note: this uses a lock instead of atomic add instructions.
50 AutoLock lock(lock_);
58 AutoLock lock(lock_);
64 Lock lock_;
68 typedef pp::Lock Lock;
119 /// A simple object that acts like a lock but does nothing.
123 /// asserts that the caller does not recursively lock.
124 class Lock {
    [all...]
  /external/clang/test/PCH/
thread-safety-attrs.cpp 35 void Lock() __attribute__((exclusive_lock_function));
64 // The universal lock, written "*", allows checking to be selectively turned
118 sls_mw.mu.Lock();
124 sls_mu.Lock();
130 sls_mu.Lock();
136 sls_mu2.Lock();
142 sls_mu.Lock();
148 sls_mu.Lock();
154 sls_mu.Lock();
155 sls_mu2.Lock();
    [all...]
  /external/valgrind/unittest/
deadlock_unittest.cc 80 mu[idx].Lock();
91 mu[idx].Lock();
141 mu.Lock();
165 mu1.Lock();
166 mu2.Lock();
172 mu2.Lock();
173 mu1.Lock();
190 mu1.Lock(); mu2.Lock();
195 mu2.Lock(); mu3.Lock()
    [all...]
  /external/chromium/base/threading/
thread_checker_impl.h 10 #include "base/synchronization/lock.h"
36 mutable base::Lock lock_;

Completed in 390 milliseconds

1 2 3 4 5 6 7 8 91011>>