/external/valgrind/main/drd/tests/ |
tsan_unittest.cpp | 54 #define RWLock Mutex // Mutex does work as an rw-lock. 147 printf_mu.Lock();\ 365 // 3. MU.Lock() a. write(GLOB) 366 // b. MU.Lock() 379 MU.Lock(); 390 MU.Lock(); 415 // b. MU.Lock() 427 MU.Lock(); 495 // 3. MU.Lock() a. write(GLOB) 496 // b. MU.Lock() 6924 static Mutex lock; member in namespace:test308 [all...] |
tsan_thread_wrappers_pthread.h | 120 void Lock() { 143 void Lock() { 180 /// pthread_mutex_t is *not* a reader-writer lock, 202 void Lock() { CHECK(0 == pthread_mutex_lock(&mu_));} 210 void ReaderLock() { Lock(); } 214 void LockWhen(Condition cond) { Lock(); WaitLoop(cond); } 215 void ReaderLockWhen(Condition cond) { Lock(); WaitLoop(cond); } 219 { Lock(); return WaitLoopWithTimeout(cond, millis); } 221 { Lock(); return WaitLoopWithTimeout(cond, millis); } 265 mu_->Lock(); [all...] |
/external/chromium/chrome/browser/chromeos/login/ |
camera.h | 13 #include "base/synchronization/lock.h" 183 // Lock that guards references to |frame_image_|. 184 mutable base::Lock image_lock_; 186 // Lock that guards references to |camera_thread_|. 187 mutable base::Lock thread_lock_;
|
/external/chromium/chrome/browser/content_settings/ |
content_settings_base_provider.h | 13 #include "base/synchronization/lock.h" 107 base::Lock& lock() const { function in class:content_settings::BaseProvider 129 mutable base::Lock lock_;
|
/external/chromium/chrome/browser/ |
mach_broker_mac.h | 17 #include "base/synchronization/lock.h" 58 // MUST acquire the lock given by GetLock() before calling this method (and 59 // release the lock afterwards). 64 // |pid|. Callers MUST acquire the lock given by GetLock() before calling 65 // this method (and release the lock afterwards). 71 // The lock that protects this MachBroker object. Clients MUST acquire and 72 // release this lock around calls to PlaceholderForPid() and FinalizePid(). 73 base::Lock& GetLock(); 103 mutable base::Lock lock_;
|
/external/chromium/crypto/ |
openssl_util.cc | 14 #include "base/synchronization/lock.h" 49 locks_.push_back(new base::Lock()); 73 ScopedVector<base::Lock> locks_;
|
/external/chromium_org/base/metrics/ |
statistics_recorder.h | 27 class Lock; 100 // Lock protects access to above maps. 101 static base::Lock* lock_;
|
/external/chromium_org/chrome/test/chromedriver/net/ |
test_http_server.h | 13 #include "base/synchronization/lock.h" 88 mutable base::Lock url_lock_; 92 base::Lock action_lock_;
|
/external/chromium_org/components/webdata/common/ |
web_data_request_manager.h | 15 #include "base/synchronization/lock.h" 79 // A lock to protect against simultaneous cancellations of the request. 81 mutable base::Lock cancel_lock_; 126 // A lock to protect pending requests and next request handle. 127 base::Lock pending_lock_;
|
/external/chromium_org/content/browser/ |
mach_broker_mac.h | 16 #include "base/synchronization/lock.h" 50 // The lock that protects this MachBroker object. Clients MUST acquire and 51 // release this lock around calls to EnsureRunning(), PlaceholderForPid(), 53 base::Lock& GetLock(); 56 // Callers MUST acquire the lock given by GetLock() before calling this 57 // method (and release the lock afterwards). 62 // MUST acquire the lock given by GetLock() before calling this method (and 63 // release the lock afterwards). 89 // |pid|. Callers MUST acquire the lock given by GetLock() before calling 90 // this method (and release the lock afterwards) [all...] |
/external/chromium_org/crypto/ |
openssl_util.cc | 14 #include "base/synchronization/lock.h" 49 locks_.push_back(new base::Lock()); 73 ScopedVector<base::Lock> locks_;
|
/external/chromium_org/net/base/ |
address_tracker_linux.h | 22 #include "base/synchronization/lock.h" 84 mutable base::Lock address_map_lock_; 90 base::Lock is_offline_lock_;
|
/external/chromium_org/ppapi/shared_impl/ |
ppapi_globals.h | 20 class Lock; 72 virtual base::Lock* GetProxyLock() = 0;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
spinlock.h | 35 // Fast spinlocks (at least on x86, a lock/unlock pair is approximately 40 // If used within a signal handler, all lock holders 58 // static SpinLock lock(base::LINKER_INITIALIZED); 72 inline void Lock() /*EXCLUSIVE_LOCK_FUNCTION()*/ { 81 // acquisition was successful. If the lock was not acquired, false is 105 // for the lock. 110 // Determine if the lock is held. When the lock is held by the invoking 112 // CHECK(lock.IsHeld()). 141 l->Lock(); [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
spinlock.h | 35 // Fast spinlocks (at least on x86, a lock/unlock pair is approximately 40 // If used within a signal handler, all lock holders 58 // static SpinLock lock(base::LINKER_INITIALIZED); 72 inline void Lock() /*EXCLUSIVE_LOCK_FUNCTION()*/ { 81 // acquisition was successful. If the lock was not acquired, false is 105 // for the lock. 110 // Determine if the lock is held. When the lock is held by the invoking 112 // CHECK(lock.IsHeld()). 141 l->Lock(); [all...] |
/external/chromium_org/tools/memory_watcher/ |
call_stack.h | 21 #include "base/synchronization/lock.h" 113 static base::Lock dbghelp_lock_; 122 // We avoid re-aquiring said lock and return an !valid_ instance when we 163 static base::Lock freelist_lock_;
|
/external/chromium_org/v8/test/cctest/ |
test-platform-linux.cc | 28 // Tests of the TokenLock class from lock.h 55 CHECK_EQ(0, mutex->Lock()); 61 CHECK_EQ(0, mutex->Lock()); 78 // Runs two threads that repeatedly acquire the lock and conditionally
|
test-platform-nullos.cc | 28 // Tests of the TokenLock class from lock.h 55 CHECK_EQ(0, mutex->Lock()); 61 CHECK_EQ(0, mutex->Lock()); 78 // Runs two threads that repeatedly acquire the lock and conditionally
|
/external/smack/src/com/kenai/jbosh/ |
HTTPExchange.java | 20 import java.util.concurrent.locks.Lock; 45 * Lock instance used to protect and provide conditions. 47 private final Lock lock = new ReentrantLock(); field in class:HTTPExchange 52 private final Condition ready = lock.newCondition(); 92 lock.lock(); 101 lock.unlock(); 111 lock.lock(); [all...] |
/external/v8/test/cctest/ |
test-platform-linux.cc | 3 // Tests of the TokenLock class from lock.h 30 CHECK_EQ(0, mutex->Lock()); 36 CHECK_EQ(0, mutex->Lock()); 53 // Runs two threads that repeatedly acquire the lock and conditionally
|
test-platform-nullos.cc | 3 // Tests of the TokenLock class from lock.h 30 CHECK_EQ(0, mutex->Lock()); 36 CHECK_EQ(0, mutex->Lock()); 53 // Runs two threads that repeatedly acquire the lock and conditionally
|
/external/valgrind/main/helgrind/tests/ |
tc12_rwl_trivial.stderr.exp | 8 Thread #x unlocked a not-locked lock at 0x........ 12 Lock at 0x........ was first observed
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
BarrierConsumer.java | 21 import java.util.concurrent.locks.Lock; 30 private final Lock mLock = new ReentrantLock(); 55 mLock.lock(); 73 mLock.lock();
|
/external/valgrind/unittest/ |
racecheck_unittest.cc | 125 // 3. MU.Lock() a. write(GLOB) 126 // b. MU.Lock() 139 MU.Lock(); 150 MU.Lock(); 175 // b. MU.Lock() 187 MU.Lock(); 255 // 3. MU.Lock() a. write(GLOB) 256 // b. MU.Lock() 267 MU.Lock(); 275 MU.Lock(); 6253 pthread_spinlock_t lock; member in namespace:test153 [all...] |
thread_wrappers_pthread.h | 139 /// pthread_mutex_t is *not* a reader-writer lock, 160 void Lock() { CHECK(0 == pthread_mutex_lock(&mu_));} 169 void ReaderLock() { Lock(); } 173 void LockWhen(Condition cond) { Lock(); WaitLoop(cond); } 174 void ReaderLockWhen(Condition cond) { Lock(); WaitLoop(cond); } 178 { Lock(); return WaitLoopWithTimeout(cond, millis); } 180 { Lock(); return WaitLoopWithTimeout(cond, millis); } 237 // ReaderLock method of Mutex to be the real rw-lock. 238 // So, we need a special lock class to test reader locks. 244 void Lock() { CHECK(0 == pthread_rwlock_wrlock(&mu_)); [all...] |