/external/llvm/lib/Support/Unix/ |
H A D | RWMutex.inc | 26 // will therefore deadlock if a thread tries to acquire a read lock 36 return static_cast<MutexImpl *>(data_)->acquire(); 44 return static_cast<MutexImpl *>(data_)->acquire();
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/ |
H A D | RWMutex.inc | 26 // will therefore deadlock if a thread tries to acquire a read lock 36 return static_cast<MutexImpl *>(data_)->acquire(); 44 return static_cast<MutexImpl *>(data_)->acquire();
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
H A D | RateLimiterTest.java | 55 limiter.acquire(); // R0.00, since it's the first request 56 limiter.acquire(); // R0.20 57 limiter.acquire(); // R0.20 63 assertTrue("Unable to acquire initial permit", r.tryAcquire()); 86 limiter.acquire(0); 91 limiter.acquire(-1); 119 limiter.acquire(); // R0.00 121 limiter.acquire(); // R0.00, ...which is granted immediately 122 limiter.acquire(); // R0.20 128 assertEquals(0.0, limiter.acquire(), EPSILO [all...] |
/external/python/cpython2/Lib/test/ |
H A D | lock_tests.py | 81 lock.acquire() 86 lock.acquire() 92 self.assertTrue(lock.acquire(False)) 97 lock.acquire() 100 result.append(lock.acquire(False)) 107 lock.acquire() 110 lock.acquire() 124 lock.acquire() 142 lock.acquire() 161 lock.acquire() [all...] |
H A D | test_threaded_import.py | 19 critical_section.acquire() 62 done.acquire() 68 done.acquire()
|
H A D | test_dummy_thread.py | 32 self.lock.acquire() 43 self.assertTrue(self.lock.acquire(0), 48 self.lock.acquire(0) 49 self.assertFalse(self.lock.acquire(0), 55 self.lock.acquire() 61 self.assertIs(self.lock.acquire(1), True, 63 self.assertIs(self.lock.acquire(), True) 72 self.lock.acquire() 79 self.lock.acquire()
|
H A D | test_dummy_threading.py | 20 sema.acquire() 21 mutex.acquire() 29 mutex.acquire()
|
/external/llvm/test/MC/ARM/ |
H A D | load-store-acquire-release-v8-thumb.s | 12 @ CHECK-V7: error: instruction requires: acquire/release 13 @ CHECK-V7: error: instruction requires: acquire/release 14 @ CHECK-V7: error: instruction requires: acquire/release 15 @ CHECK-V7: error: instruction requires: acquire/release 25 @ CHECK-V7: error: instruction requires: acquire/release 26 @ CHECK-V7: error: instruction requires: acquire/release 27 @ CHECK-V7: error: instruction requires: acquire/release 28 @ CHECK-V7: error: instruction requires: acquire/release 36 @ CHECK-V7: error: instruction requires: acquire/release 37 @ CHECK-V7: error: instruction requires: acquire/releas [all...] |
H A D | load-store-acquire-release-v8.s | 12 @ CHECK-V7: instruction requires: acquire/release 13 @ CHECK-V7: instruction requires: acquire/release 14 @ CHECK-V7: instruction requires: acquire/release 15 @ CHECK-V7: instruction requires: acquire/release 25 @ CHECK-V7: instruction requires: acquire/release 26 @ CHECK-V7: instruction requires: acquire/release 27 @ CHECK-V7: instruction requires: acquire/release 28 @ CHECK-V7: instruction requires: acquire/release 36 @ CHECK-V7: instruction requires: acquire/release 37 @ CHECK-V7: instruction requires: acquire/releas [all...] |
/external/python/cpython2/Lib/multiprocessing/ |
H A D | synchronize.py | 85 self.acquire = self._semlock.acquire 221 self.acquire = self._lock.acquire 234 'must acquire() condition before using wait()' 246 self._wait_semaphore.acquire(True, timeout) 253 self._lock.acquire() 257 assert not self._wait_semaphore.acquire(False) 261 while self._woken_count.acquire(False): 262 res = self._sleeping_count.acquire(Fals [all...] |
/external/python/cpython3/Lib/test/ |
H A D | lock_tests.py | 95 lock.acquire() 101 lock.acquire() 106 lock.acquire() 112 self.assertTrue(lock.acquire(False)) 117 lock.acquire() 120 result.append(lock.acquire(False)) 127 lock.acquire() 130 lock.acquire() 144 lock.acquire() 162 lock.acquire() [all...] |
H A D | test_threadsignals.py | 46 signalled_all.acquire() 48 signalled_all.acquire() 88 lock.acquire() 91 self.assertRaises(KeyboardInterrupt, lock.acquire, timeout=5) 94 # We want to assert that lock.acquire() was interrupted because 96 # after timeout return of lock.acquire() (which can fool assertRaises). 117 rlock.acquire() 119 # Wait until we can't acquire it without blocking... 120 while rlock.acquire(blocking=False): 125 self.assertRaises(KeyboardInterrupt, rlock.acquire, timeou [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowPowerManager.java | 37 public void acquire() { method in class:ShadowPowerManager.ShadowWakeLock 38 acquire(0); 43 public synchronized void acquire(long timeout) { method in class:ShadowPowerManager.ShadowWakeLock
|
/external/python/cpython2/Demo/threads/ |
H A D | sync.py | 23 # .acquire() 24 # acquire the lock associated with the condition 58 # condition object can (must) be .acquire'ed and .release'ed directly. 87 # condition.acquire() 92 # # did a .wait, *and* acquire the lock again before .wait 109 # condition.acquire() 133 # B_done.acquire() B_done.acquire(); B_done.release() 138 # Because B_done was in the acquire'd state at the time B was spawned, 139 # B's attempt to acquire B_don 298 def acquire(self): member in class:condition [all...] |
/external/skia/include/private/ |
H A D | SkSpinlock.h | 18 void acquire() { function in class:SkSpinlock 19 // To act as a mutex, we need an acquire barrier when we acquire the lock. 28 // To act as a mutex, we need an acquire barrier when we acquire the lock.
|
/external/skqp/include/private/ |
H A D | SkSpinlock.h | 18 void acquire() { function in class:SkSpinlock 19 // To act as a mutex, we need an acquire barrier when we acquire the lock. 28 // To act as a mutex, we need an acquire barrier when we acquire the lock.
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
H A D | Mutex.h | 31 /// Initializes the lock but doesn't acquire it. if \p recursive is set 33 /// also more likely to deadlock (same thread can't acquire more than 47 /// Attempts to unconditionally acquire the lock. If the lock is held by 48 /// another thread, this method will wait until it can acquire the lock. 50 /// @brief Unconditionally acquire the lock. 51 bool acquire(); 54 /// thread, the lock is released allowing other threads to acquire the 60 /// Attempts to acquire the lock without blocking. If the lock is not 65 /// @brief Try to acquire the lock. 95 bool acquire() { function in class:llvm::sys::SmartMutex [all...] |
H A D | MutexGuard.h | 21 /// Instances of this class acquire a given Mutex Lock when constructed and 32 MutexGuard(sys::Mutex &m) : M(m) { M.acquire(); }
|
/external/python/cpython2/Demo/metaclasses/ |
H A D | Synch.py | 19 of times it has been acquired by the same thread. Each acquire() 29 A thread intending to acquire both locks should acquire __wait 49 def acquire(self, flag=1): member in class:Lock 53 when it cannot acquire the __wait lock without blocking (it 54 may still block for a little while in order to acquire the 61 self.__mutex.acquire() 68 locked = self.__wait.acquire(flag) 72 self.__mutex.acquire() 87 Only allow another thread to acquire th [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
H A D | WakeLockFacade.java | 63 public void acquire(WakeLockType type) { method in class:WakeLockFacade.WakeLockManager 64 mmLocks.get(type).acquire(); 90 mManager.acquire(WakeLockType.FULL); 95 mManager.acquire(WakeLockType.PARTIAL); 100 mManager.acquire(WakeLockType.BRIGHT); 105 mManager.acquire(WakeLockType.DIM);
|
/external/webrtc/webrtc/base/ |
H A D | linked_ptr.h | 48 {acquire(r);} 53 acquire(r); 61 {acquire(r);} 66 acquire(r); 82 void acquire(const linked_ptr& r) throw() function in class:rtc::linked_ptr 96 template <class Y> void acquire(const linked_ptr<Y>& r) throw() function in class:rtc::linked_ptr
|
/external/python/cpython3/Lib/multiprocessing/ |
H A D | synchronize.py | 92 self.acquire = self._semlock.acquire 237 self.acquire = self._lock.acquire 250 'must acquire() condition before using wait()' 262 return self._wait_semaphore.acquire(True, timeout) 269 self._lock.acquire() 273 assert not self._wait_semaphore.acquire(False) 277 while self._woken_count.acquire(False): 278 res = self._sleeping_count.acquire(Fals [all...] |
/external/skia/tests/ |
H A D | SkSharedMutexTest.cpp | 15 sm.acquire(); 44 sm.acquire();
|
/external/skqp/tests/ |
H A D | SkSharedMutexTest.cpp | 15 sm.acquire(); 44 sm.acquire();
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | PowerManagerTest.java | 44 lock.acquire(); 46 lock.acquire(); 62 lock.acquire(); 64 lock.acquire();
|