Home
last modified time | relevance | path

Searched full:acquire (Results 1 – 25 of 1495) sorted by relevance

12345678910>>...60

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DRateLimiterTest.java55 limiter.acquire(); // R0.00, since it's the first request in testSimple()
56 limiter.acquire(); // R0.20 in testSimple()
57 limiter.acquire(); // R0.20 in testSimple()
63 assertTrue("Unable to acquire initial permit", r.tryAcquire()); in testImmediateTryAcquire()
86 limiter.acquire(0); in testAcquireParameterValidation()
91 limiter.acquire(-1); in testAcquireParameterValidation()
119 limiter.acquire(); // R0.00 in testSimpleWithWait()
121 limiter.acquire(); // R0.00, ...which is granted immediately in testSimpleWithWait()
122 limiter.acquire(); // R0.20 in testSimpleWithWait()
128 assertEquals(0.0, limiter.acquire(), EPSILON); // R0.00 in testSimpleAcquireReturnValues()
[all …]
/external/python/cpython2/Lib/test/
Dlock_tests.py81 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 …]
/external/libchrome/base/task_scheduler/
Dscheduler_lock_unittest.cc23 // Acquire()/Release() don't crash.
36 lock_->Acquire(); in Run()
41 lock_->Acquire(); in Run()
75 lock_->Acquire(); in Run()
96 lock.Acquire(); in TEST()
101 lock.Acquire(); in TEST()
107 lock.Acquire(); in TEST()
122 predecessor.Acquire(); in TEST()
123 lock.Acquire(); in TEST()
132 lock.Acquire(); in TEST()
[all …]
/external/python/cpython3/Lib/test/
Dlock_tests.py101 lock.acquire()
107 lock.acquire()
112 lock.acquire()
118 self.assertTrue(lock.acquire(False))
123 lock.acquire()
126 result.append(lock.acquire(False))
133 lock.acquire()
136 lock.acquire()
150 lock.acquire()
168 lock.acquire()
[all …]
Dtest_threadsignals.py47 signalled_all.acquire()
49 signalled_all.acquire()
96 lock.acquire()
99 self.assertRaises(KeyboardInterrupt, lock.acquire, timeout=5)
102 # We want to assert that lock.acquire() was interrupted because
104 # after timeout return of lock.acquire() (which can fool assertRaises).
130 rlock.acquire()
134 # Wait until we can't acquire it without blocking...
135 while rlock.acquire(blocking=False):
140 self.assertRaises(KeyboardInterrupt, rlock.acquire, timeout=5)
[all …]
/external/llvm/test/CodeGen/X86/
Datomic6432.ll8 %t1 = atomicrmw add i64* @sc64, i64 1 acquire
13 %t2 = atomicrmw add i64* @sc64, i64 3 acquire
18 %t3 = atomicrmw add i64* @sc64, i64 5 acquire
23 %t4 = atomicrmw add i64* @sc64, i64 %t3 acquire
34 %t1 = atomicrmw sub i64* @sc64, i64 1 acquire
39 %t2 = atomicrmw sub i64* @sc64, i64 3 acquire
44 %t3 = atomicrmw sub i64* @sc64, i64 5 acquire
49 %t4 = atomicrmw sub i64* @sc64, i64 %t3 acquire
60 %t1 = atomicrmw and i64* @sc64, i64 3 acquire
65 %t2 = atomicrmw and i64* @sc64, i64 4294967297 acquire
[all …]
Datomic64.ll9 %t1 = atomicrmw add i64* @sc64, i64 1 acquire
12 %t2 = atomicrmw add i64* @sc64, i64 3 acquire
15 %t3 = atomicrmw add i64* @sc64, i64 5 acquire
18 %t4 = atomicrmw add i64* @sc64, i64 %t3 acquire
28 %t1 = atomicrmw sub i64* @sc64, i64 1 acquire
31 %t2 = atomicrmw sub i64* @sc64, i64 3 acquire
34 %t3 = atomicrmw sub i64* @sc64, i64 5 acquire
37 %t4 = atomicrmw sub i64* @sc64, i64 %t3 acquire
47 %t1 = atomicrmw and i64* @sc64, i64 3 acquire
50 %t2 = atomicrmw and i64* @sc64, i64 5 acquire
[all …]
Datomic8.ll11 %t1 = atomicrmw add i8* @sc8, i8 1 acquire
16 %t2 = atomicrmw add i8* @sc8, i8 3 acquire
21 %t3 = atomicrmw add i8* @sc8, i8 5 acquire
26 %t4 = atomicrmw add i8* @sc8, i8 %t3 acquire
39 %t1 = atomicrmw sub i8* @sc8, i8 1 acquire
44 %t2 = atomicrmw sub i8* @sc8, i8 3 acquire
49 %t3 = atomicrmw sub i8* @sc8, i8 5 acquire
54 %t4 = atomicrmw sub i8* @sc8, i8 %t3 acquire
67 %t1 = atomicrmw and i8* @sc8, i8 3 acquire
72 %t2 = atomicrmw and i8* @sc8, i8 5 acquire
[all …]
Datomic32.ll11 %t1 = atomicrmw add i32* @sc32, i32 1 acquire
14 %t2 = atomicrmw add i32* @sc32, i32 3 acquire
17 %t3 = atomicrmw add i32* @sc32, i32 5 acquire
20 %t4 = atomicrmw add i32* @sc32, i32 %t3 acquire
29 %t1 = atomicrmw sub i32* @sc32, i32 1 acquire
32 %t2 = atomicrmw sub i32* @sc32, i32 3 acquire
35 %t3 = atomicrmw sub i32* @sc32, i32 5 acquire
38 %t4 = atomicrmw sub i32* @sc32, i32 %t3 acquire
47 %t1 = atomicrmw and i32* @sc32, i32 3 acquire
50 %t2 = atomicrmw and i32* @sc32, i32 5 acquire
[all …]
Datomic16.ll11 %t1 = atomicrmw add i16* @sc16, i16 1 acquire
16 %t2 = atomicrmw add i16* @sc16, i16 3 acquire
21 %t3 = atomicrmw add i16* @sc16, i16 5 acquire
26 %t4 = atomicrmw add i16* @sc16, i16 %t3 acquire
39 %t1 = atomicrmw sub i16* @sc16, i16 1 acquire
44 %t2 = atomicrmw sub i16* @sc16, i16 3 acquire
49 %t3 = atomicrmw sub i16* @sc16, i16 5 acquire
54 %t4 = atomicrmw sub i16* @sc16, i16 %t3 acquire
67 %t1 = atomicrmw and i16* @sc16, i16 3 acquire
72 %t2 = atomicrmw and i16* @sc16, i16 5 acquire
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Datomic6432.ll8 %t1 = atomicrmw add i64* @sc64, i64 1 acquire
13 %t2 = atomicrmw add i64* @sc64, i64 3 acquire
18 %t3 = atomicrmw add i64* @sc64, i64 5 acquire
23 %t4 = atomicrmw add i64* @sc64, i64 %t3 acquire
34 %t1 = atomicrmw sub i64* @sc64, i64 1 acquire
39 %t2 = atomicrmw sub i64* @sc64, i64 3 acquire
44 %t3 = atomicrmw sub i64* @sc64, i64 5 acquire
49 %t4 = atomicrmw sub i64* @sc64, i64 %t3 acquire
60 %t1 = atomicrmw and i64* @sc64, i64 3 acquire
65 %t2 = atomicrmw and i64* @sc64, i64 4294967297 acquire
[all …]
Datomic64.ll9 %t1 = atomicrmw add i64* @sc64, i64 1 acquire
12 %t2 = atomicrmw add i64* @sc64, i64 3 acquire
15 %t3 = atomicrmw add i64* @sc64, i64 5 acquire
18 %t4 = atomicrmw add i64* @sc64, i64 %t3 acquire
28 %t1 = atomicrmw sub i64* @sc64, i64 1 acquire
31 %t2 = atomicrmw sub i64* @sc64, i64 3 acquire
34 %t3 = atomicrmw sub i64* @sc64, i64 5 acquire
37 %t4 = atomicrmw sub i64* @sc64, i64 %t3 acquire
47 %t1 = atomicrmw and i64* @sc64, i64 3 acquire
50 %t2 = atomicrmw and i64* @sc64, i64 5 acquire
[all …]
Datomic8.ll11 %t1 = atomicrmw add i8* @sc8, i8 1 acquire
16 %t2 = atomicrmw add i8* @sc8, i8 3 acquire
21 %t3 = atomicrmw add i8* @sc8, i8 5 acquire
26 %t4 = atomicrmw add i8* @sc8, i8 %t3 acquire
39 %t1 = atomicrmw sub i8* @sc8, i8 1 acquire
44 %t2 = atomicrmw sub i8* @sc8, i8 3 acquire
49 %t3 = atomicrmw sub i8* @sc8, i8 5 acquire
54 %t4 = atomicrmw sub i8* @sc8, i8 %t3 acquire
67 %t1 = atomicrmw and i8* @sc8, i8 3 acquire
72 %t2 = atomicrmw and i8* @sc8, i8 5 acquire
[all …]
Datomic16.ll11 %t1 = atomicrmw add i16* @sc16, i16 1 acquire
16 %t2 = atomicrmw add i16* @sc16, i16 3 acquire
21 %t3 = atomicrmw add i16* @sc16, i16 5 acquire
26 %t4 = atomicrmw add i16* @sc16, i16 %t3 acquire
39 %t1 = atomicrmw sub i16* @sc16, i16 1 acquire
44 %t2 = atomicrmw sub i16* @sc16, i16 3 acquire
49 %t3 = atomicrmw sub i16* @sc16, i16 5 acquire
54 %t4 = atomicrmw sub i16* @sc16, i16 %t3 acquire
67 %t1 = atomicrmw and i16* @sc16, i16 3 acquire
72 %t2 = atomicrmw and i16* @sc16, i16 5 acquire
[all …]
/external/python/cpython2/Lib/multiprocessing/
Dsynchronize.py85 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(False)
265 if self._sleeping_count.acquire(False): # try grabbing a sleeper
267 self._woken_count.acquire() # wait for the sleeper to wake
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/ARM/
Dload-store-acquire-release-v8-thumb.s12 @ 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/release
[all …]
Dload-store-acquire-release-v8.s12 @ 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/release
[all …]
/external/llvm/test/MC/ARM/
Dload-store-acquire-release-v8.s12 @ 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/release
[all …]
Dload-store-acquire-release-v8-thumb.s12 @ 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/release
[all …]
/external/python/cpython2/Demo/metaclasses/
DSynch.py19 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 Lock
50 """Acquire the 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 the lock when the count
[all …]
/external/python/cpython2/Demo/threads/
Dsync.py23 # .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_done can't succeed until A has done its
275 # the lock actually used by .acquire() and .release()
[all …]
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_locks.py98 self.assertTrue(self.loop.run_until_complete(lock.acquire()))
101 if await lock.acquire():
106 if await lock.acquire():
111 if await lock.acquire():
147 self.assertTrue(self.loop.run_until_complete(lock.acquire()))
149 task = asyncio.Task(lock.acquire(), loop=self.loop)
159 # - B is blocked in acquire()
160 # - C is blocked in acquire()
174 await lock.acquire()
205 # Acquire 4 locks, cancel second, release first
[all …]
/external/python/cpython3/Lib/multiprocessing/
Dsynchronize.py91 self.acquire = self._semlock.acquire
236 self.acquire = self._lock.acquire
249 'must acquire() condition before using wait()'
261 return self._wait_semaphore.acquire(True, timeout)
268 self._lock.acquire()
272 assert not self._wait_semaphore.acquire(
273 False), ('notify: Should not have been able to acquire'
278 while self._woken_count.acquire(False):
279 res = self._sleeping_count.acquire(False)
280 assert res, ('notify: Bug in sleeping_count.acquire'
[all …]
/external/catch2/projects/SelfTest/IntrospectiveTests/
DPartTracker.tests.cpp43 ITracker& testCase = SectionTracker::acquire( ctx, makeNAL( "Testcase" ) );
46 ITracker& s1 = SectionTracker::acquire( ctx, makeNAL( "S1" ) );
71 ITracker& testCase2 = SectionTracker::acquire( ctx, makeNAL( "Testcase" ) );
74 ITracker& s1b = SectionTracker::acquire( ctx, makeNAL( "S1" ) );
84 ITracker& testCase2 = SectionTracker::acquire( ctx, makeNAL( "Testcase" ) );
87 ITracker& s1b = SectionTracker::acquire( ctx, makeNAL( "S1" ) );
90 ITracker& s2 = SectionTracker::acquire( ctx, makeNAL( "S2" ) );
105 ITracker& s2 = SectionTracker::acquire( ctx, makeNAL( "S2" ) );
113 ITracker& testCase2 = SectionTracker::acquire( ctx, makeNAL( "Testcase" ) );
116 ITracker& s1b = SectionTracker::acquire( ctx, makeNAL( "S1" ) );
[all …]
/external/llvm/test/Bitcode/
DmemInstructions.3.2.ll92 ; CHECK-NEXT: %res3 = load atomic i8, i8* %ptr1 acquire, align 1
93 %res3 = load atomic i8, i8* %ptr1 acquire, align 1
104 ; CHECK-NEXT: %res7 = load atomic volatile i8, i8* %ptr1 acquire, align 1
105 %res7 = load atomic volatile i8, i8* %ptr1 acquire, align 1
116 ; CHECK-NEXT: %res11 = load atomic i8, i8* %ptr1 singlethread acquire, align 1
117 %res11 = load atomic i8, i8* %ptr1 singlethread acquire, align 1
128 ; CHECK-NEXT: %res15 = load atomic volatile i8, i8* %ptr1 singlethread acquire, align 1
129 %res15 = load atomic volatile i8, i8* %ptr1 singlethread acquire, align 1
244 ; CHECK-NEXT: [[TMP:%[a-z0-9]+]] = cmpxchg i32* %ptr, i32 %cmp, i32 %new acquire acquire
246 %res5 = cmpxchg i32* %ptr, i32 %cmp, i32 %new acquire acquire
[all …]

12345678910>>...60