Home
last modified time | relevance | path

Searched defs:guard (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java141 TestGuard guard = new TestGuard(true); in testEnterWhen_initiallyTrue() local
142 thread1.callAndAssertReturns(enterWhen(), guard); in testEnterWhen_initiallyTrue() local
146 TestGuard guard = new TestGuard(false); in testEnterWhen_initiallyFalse() local
147 thread1.callAndAssertWaits(enterWhen(), guard); in testEnterWhen_initiallyFalse() local
155 TestGuard guard = new TestGuard(true); in testEnterWhen_alreadyOccupied() local
157 thread1.callAndAssertBlocks(enterWhen(), guard); in testEnterWhen_alreadyOccupied() local
163 TestGuard guard = new TestGuard(true); in testEnterIf_initiallyTrue() local
169 TestGuard guard = new TestGuard(false); in testEnterIf_initiallyFalse() local
175 TestGuard guard = new TestGuard(true); in testEnterIf_alreadyOccupied() local
177 thread1.callAndAssertBlocks(enterIf(), guard); in testEnterIf_alreadyOccupied() local
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java141 TestGuard guard = new TestGuard(true); in testEnterWhen_initiallyTrue() local
142 thread1.callAndAssertReturns(enterWhen(), guard); in testEnterWhen_initiallyTrue() local
148 TestGuard guard = new TestGuard(false); in testEnterWhen_initiallyFalse() local
149 thread1.callAndAssertWaits(enterWhen(), guard); in testEnterWhen_initiallyFalse() local
157 TestGuard guard = new TestGuard(true); in testEnterWhen_alreadyOccupied() local
159 thread1.callAndAssertBlocks(enterWhen(), guard); in testEnterWhen_alreadyOccupied() local
165 TestGuard guard = new TestGuard(true); in testEnterIf_initiallyTrue() local
171 TestGuard guard = new TestGuard(false); in testEnterIf_initiallyFalse() local
177 TestGuard guard = new TestGuard(true); in testEnterIf_alreadyOccupied() local
179 thread1.callAndAssertBlocks(enterIf(), guard); in testEnterIf_alreadyOccupied() local
[all …]
/external/vixl/src/aarch64/
Dmacro-assembler-sve-aarch64.cc61 SingleEmissionCheckScope guard(this); in AddSubHelper() local
79 MovprfxHelperScope guard(this, zd, zn); in TrySingleAddSub() local
101 MovprfxHelperScope guard(this, zd, zn); in IntWideImmHelper() local
108 MovprfxHelperScope guard(this, zd, zn); in IntWideImmHelper() local
198 SingleEmissionCheckScope guard(this); in Addpl() local
213 MacroEmissionCheckScope guard(this); in Addpl() local
236 MacroEmissionCheckScope guard(this); in Addpl() local
267 SingleEmissionCheckScope guard(this); in Addvl() local
291 MacroEmissionCheckScope guard(this); in Addvl() local
372 SingleEmissionCheckScope guard(this); in Cpy() local
[all …]
/external/rust/crates/tokio/src/sync/tests/
Dloom_rwlock.rs17 let mut guard = rwclone.write().await; in concurrent_write() localVariable
25 let mut guard = rwclone.write_owned().await; in concurrent_write() localVariable
33 let guard = block_on(rwlock.read()); in concurrent_write() localVariable
48 let mut guard = rwclone.write().await; in concurrent_read_write() localVariable
56 let mut guard = rwclone.write_owned().await; in concurrent_read_write() localVariable
64 let guard = rwclone.read().await; in concurrent_read_write() localVariable
71 let guard = block_on(rwlock.clone().read_owned()); in concurrent_read_write() localVariable
80 let guard = block_on(rwlock.read()); in concurrent_read_write() localVariable
94 let mut guard = block_on(cloned_lock.write()); in downgrade() localVariable
/external/guava/android/guava/src/com/google/common/util/concurrent/
DMonitor.java432 public void enterWhen(Guard guard) throws InterruptedException { in enterWhen()
462 public boolean enterWhen(Guard guard, long time, TimeUnit unit) throws InterruptedException { in enterWhen()
514 public void enterWhenUninterruptibly(Guard guard) { in enterWhenUninterruptibly()
542 public boolean enterWhenUninterruptibly(Guard guard, long time, TimeUnit unit) { in enterWhenUninterruptibly()
608 public boolean enterIf(Guard guard) { in enterIf()
632 public boolean enterIf(Guard guard, long time, TimeUnit unit) { in enterIf()
657 public boolean enterIfInterruptibly(Guard guard) throws InterruptedException { in enterIfInterruptibly()
681 public boolean enterIfInterruptibly(Guard guard, long time, TimeUnit unit) in enterIfInterruptibly()
709 public boolean tryEnterIf(Guard guard) { in tryEnterIf()
734 public void waitFor(Guard guard) throws InterruptedException { in waitFor()
[all …]
/external/angle/third_party/abseil-cpp/absl/debugging/internal/
Ddemangle.cc282 ComplexityGuard guard(state); in ParseOneCharToken() local
295 ComplexityGuard guard(state); in ParseTwoCharToken() local
308 ComplexityGuard guard(state); in ParseCharClass() local
611 ComplexityGuard guard(state); in ParseMangledName() local
620 ComplexityGuard guard(state); in ParseEncoding() local
642 ComplexityGuard guard(state); in ParseName() local
672 ComplexityGuard guard(state); in ParseUnscopedName() local
698 ComplexityGuard guard(state); in ParseNestedName() local
724 ComplexityGuard guard(state); in ParsePrefix() local
755 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/cronet/third_party/abseil-cpp/absl/debugging/internal/
Ddemangle.cc282 ComplexityGuard guard(state); in ParseOneCharToken() local
295 ComplexityGuard guard(state); in ParseTwoCharToken() local
308 ComplexityGuard guard(state); in ParseCharClass() local
611 ComplexityGuard guard(state); in ParseMangledName() local
620 ComplexityGuard guard(state); in ParseEncoding() local
642 ComplexityGuard guard(state); in ParseName() local
672 ComplexityGuard guard(state); in ParseUnscopedName() local
698 ComplexityGuard guard(state); in ParseNestedName() local
724 ComplexityGuard guard(state); in ParsePrefix() local
755 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/tensorflow/third_party/absl/abseil-cpp/absl/debugging/internal/
Ddemangle.cc280 ComplexityGuard guard(state); in ParseOneCharToken() local
293 ComplexityGuard guard(state); in ParseTwoCharToken() local
306 ComplexityGuard guard(state); in ParseCharClass() local
609 ComplexityGuard guard(state); in ParseMangledName() local
618 ComplexityGuard guard(state); in ParseEncoding() local
640 ComplexityGuard guard(state); in ParseName() local
670 ComplexityGuard guard(state); in ParseUnscopedName() local
696 ComplexityGuard guard(state); in ParseNestedName() local
722 ComplexityGuard guard(state); in ParsePrefix() local
753 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/webrtc/third_party/abseil-cpp/absl/debugging/internal/
Ddemangle.cc282 ComplexityGuard guard(state); in ParseOneCharToken() local
295 ComplexityGuard guard(state); in ParseTwoCharToken() local
308 ComplexityGuard guard(state); in ParseCharClass() local
611 ComplexityGuard guard(state); in ParseMangledName() local
620 ComplexityGuard guard(state); in ParseEncoding() local
642 ComplexityGuard guard(state); in ParseName() local
672 ComplexityGuard guard(state); in ParseUnscopedName() local
698 ComplexityGuard guard(state); in ParseNestedName() local
724 ComplexityGuard guard(state); in ParsePrefix() local
755 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/openscreen/third_party/abseil/src/absl/debugging/internal/
Ddemangle.cc280 ComplexityGuard guard(state); in ParseOneCharToken() local
293 ComplexityGuard guard(state); in ParseTwoCharToken() local
306 ComplexityGuard guard(state); in ParseCharClass() local
604 ComplexityGuard guard(state); in ParseMangledName() local
613 ComplexityGuard guard(state); in ParseEncoding() local
635 ComplexityGuard guard(state); in ParseName() local
665 ComplexityGuard guard(state); in ParseUnscopedName() local
691 ComplexityGuard guard(state); in ParseNestedName() local
717 ComplexityGuard guard(state); in ParsePrefix() local
746 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/abseil-cpp/absl/debugging/internal/
Ddemangle.cc280 ComplexityGuard guard(state); in ParseOneCharToken() local
293 ComplexityGuard guard(state); in ParseTwoCharToken() local
306 ComplexityGuard guard(state); in ParseCharClass() local
608 ComplexityGuard guard(state); in ParseMangledName() local
617 ComplexityGuard guard(state); in ParseEncoding() local
639 ComplexityGuard guard(state); in ParseName() local
669 ComplexityGuard guard(state); in ParseUnscopedName() local
695 ComplexityGuard guard(state); in ParseNestedName() local
721 ComplexityGuard guard(state); in ParsePrefix() local
750 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/libtextclassifier/abseil-cpp/absl/debugging/internal/
Ddemangle.cc280 ComplexityGuard guard(state); in ParseOneCharToken() local
293 ComplexityGuard guard(state); in ParseTwoCharToken() local
306 ComplexityGuard guard(state); in ParseCharClass() local
604 ComplexityGuard guard(state); in ParseMangledName() local
613 ComplexityGuard guard(state); in ParseEncoding() local
635 ComplexityGuard guard(state); in ParseName() local
665 ComplexityGuard guard(state); in ParseUnscopedName() local
691 ComplexityGuard guard(state); in ParseNestedName() local
717 ComplexityGuard guard(state); in ParsePrefix() local
746 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/internal/
Ddemangle.cc280 ComplexityGuard guard(state); in ParseOneCharToken() local
293 ComplexityGuard guard(state); in ParseTwoCharToken() local
306 ComplexityGuard guard(state); in ParseCharClass() local
608 ComplexityGuard guard(state); in ParseMangledName() local
617 ComplexityGuard guard(state); in ParseEncoding() local
639 ComplexityGuard guard(state); in ParseName() local
669 ComplexityGuard guard(state); in ParseUnscopedName() local
695 ComplexityGuard guard(state); in ParseNestedName() local
721 ComplexityGuard guard(state); in ParsePrefix() local
750 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/
Dswap.pass.cpp131 DisableAllocationGuard guard; in main() local
142 DisableAllocationGuard guard; in main() local
150 DisableAllocationGuard guard; in main() local
158 DisableAllocationGuard guard; in main() local
167 DisableAllocationGuard guard; in main() local
178 DisableAllocationGuard guard; in main() local
189 DisableAllocationGuard guard; in main() local
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/
Dswap.pass.cpp127 DisableAllocationGuard guard; in main() local
138 DisableAllocationGuard guard; in main() local
146 DisableAllocationGuard guard; in main() local
154 DisableAllocationGuard guard; in main() local
163 DisableAllocationGuard guard; in main() local
174 DisableAllocationGuard guard; in main() local
185 DisableAllocationGuard guard; in main() local
/external/rust/crates/crossbeam-epoch/src/
Dcollector.rs149 let guard = &handle.pin(); in flush_local_bag() localVariable
169 let guard = &handle.pin(); in garbage_buffering() localVariable
193 let guard = &handle.pin(); in pin_holds_advance() localVariable
220 let guard = &handle.pin(); in incremental() localVariable
238 let guard = &handle.pin(); in incremental() localVariable
257 let guard = &handle.pin(); in buffering() localVariable
275 let guard = &handle.pin(); in buffering() localVariable
301 let guard = &handle.pin(); in count_drops() localVariable
311 let guard = &handle.pin(); in count_drops() localVariable
329 let guard = &handle.pin(); in count_destroy() localVariable
[all …]
/external/rust/crates/crossbeam-epoch/benches/
Ddefer.rs12 let guard = &epoch::pin(); in single_alloc_defer_free() localVariable
23 let guard = &epoch::pin(); in single_defer() localVariable
38 let guard = &epoch::pin(); in multi_alloc_defer_free() localVariable
61 let guard = &epoch::pin(); in multi_defer() localVariable
/external/rust/crates/crossbeam-epoch/tests/
Dloom.rs21 let guard = collector.register().pin(); in it_works() localVariable
24 let guard = collector2.register().pin(); in it_works() localVariable
79 let guard = epoch::pin(); in treiber_stack() localVariable
99 let guard = epoch::pin(); in treiber_stack() localVariable
125 let guard = epoch::pin(); in treiber_stack() localVariable
/external/cronet/base/allocator/partition_allocator/starscan/
Dpcscan_scheduling.cc94 ScopedGuard guard(scheduler_lock_); in LimitReached() local
144 ScopedGuard guard(scheduler_lock_); in ScanStarted() local
155 ScopedGuard guard(scheduler_lock_); in UpdateScheduleAfterScan() local
182 ScopedGuard guard(scheduler_lock_); in NeedsToImmediatelyScan() local
208 ScopedGuard guard(scheduler_lock_); in UpdateDelayedSchedule() local
/external/perfetto/src/base/threading/
Dthread_pool.cc32 std::lock_guard<std::mutex> guard(mutex_); in ~ThreadPool() local
42 std::lock_guard<std::mutex> guard(mutex_); in PostTask() local
54 std::unique_lock<std::mutex> guard(mutex_); in RunThreadLoop() local
/external/perfetto/test/cts/producer/jni/
Dfake_producer_jni.cc67 std::lock_guard<std::mutex> guard(g_mutex); in ListenAndRespond() local
78 std::lock_guard<std::mutex> guard(g_mutex); in Java_android_perfetto_producer_ProducerActivity_quitTaskRunner() local
87 std::lock_guard<std::mutex> guard(g_mutex); in Java_android_perfetto_producer_ProducerIsolatedService_quitTaskRunner() local
95 std::lock_guard<std::mutex> guard(g_mutex); in Java_android_perfetto_producer_ProducerService_quitTaskRunner() local
/external/cronet/base/allocator/partition_allocator/shim/
Dallocator_shim_default_dispatch_to_partition_alloc.cc261 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionMalloc() local
269 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionMallocUnchecked() local
279 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionCalloc() local
291 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionMemalign() local
299 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionAlignedAlloc() local
315 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionAlignedRealloc() local
344 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionRealloc() local
367 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionFree() local
409 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionFreeDefiniteSize() local
486 partition_alloc::ScopedDisallowAllocations guard{}; in PartitionTryFreeDefault() local
/external/rust/crates/crossbeam-epoch/src/sync/
Dlist.rs107 guard: &'g Guard, field
221 let guard = unprotected(); in drop() localVariable
325 let guard = handle.pin(); in insert() localVariable
364 let guard = handle.pin(); in delete() localVariable
413 let guard: Guard = handle.pin(); in insert_delete_multi() localVariable
435 let guard = handle.pin(); in insert_delete_multi() localVariable
455 let guard: Guard = handle.pin(); in iter_multi() localVariable
482 let guard = handle.pin(); in iter_multi() localVariable
/external/perfetto/src/base/
Dwatchdog_posix.cc133 std::lock_guard<std::mutex> guard(mutex_); in AddFatalTimer() local
140 std::lock_guard<std::mutex> guard(mutex_); in RemoveFatalTimer() local
168 std::lock_guard<std::mutex> guard(mutex_); in Start() local
193 std::lock_guard<std::mutex> guard(mutex_); in SetMemoryLimit() local
203 std::lock_guard<std::mutex> guard(mutex_); in SetCpuLimit() local
262 std::unique_lock<std::mutex> guard(mutex_); in ThreadMain() local
/external/rust/crates/crossbeam-utils/src/sync/
Dsharded_lock.rs237 let guard = ShardedLockReadGuard { in try_read() localVariable
334 let guard = match shard.lock.try_write() { in try_write() localVariable
348 let guard: RwLockWriteGuard<'static, ()> = mem::transmute(guard); in try_write() localVariable
359 let guard = mem::replace(&mut *dest, None); in try_write() localVariable
365 let guard = ShardedLockWriteGuard { in try_write() localVariable
413 let guard = match shard.lock.write() { in write() localVariable
423 let guard: RwLockWriteGuard<'_, ()> = guard; in write() localVariable
424 let guard: RwLockWriteGuard<'static, ()> = mem::transmute(guard); in write() localVariable
529 let guard = mem::replace(&mut *dest, None); in drop() localVariable

12345678910>>...12