Home
last modified time | relevance | path

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

12345678910>>...16

/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java142 TestGuard guard = new TestGuard(true); in testEnterWhen_initiallyTrue() local
143 thread1.callAndAssertReturns(enterWhen(), guard); in testEnterWhen_initiallyTrue() local
147 TestGuard guard = new TestGuard(false); in testEnterWhen_initiallyFalse() local
148 thread1.callAndAssertWaits(enterWhen(), guard); in testEnterWhen_initiallyFalse() local
156 TestGuard guard = new TestGuard(true); in testEnterWhen_alreadyOccupied() local
158 thread1.callAndAssertBlocks(enterWhen(), guard); in testEnterWhen_alreadyOccupied() local
164 TestGuard guard = new TestGuard(true); in testEnterIf_initiallyTrue() local
170 TestGuard guard = new TestGuard(false); in testEnterIf_initiallyFalse() local
176 TestGuard guard = new TestGuard(true); in testEnterIf_alreadyOccupied() local
178 thread1.callAndAssertBlocks(enterIf(), guard); in testEnterIf_alreadyOccupied() local
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DMonitorTestCase.java142 TestGuard guard = new TestGuard(true); in testEnterWhen_initiallyTrue() local
143 thread1.callAndAssertReturns(enterWhen(), guard); in testEnterWhen_initiallyTrue() local
149 TestGuard guard = new TestGuard(false); in testEnterWhen_initiallyFalse() local
150 thread1.callAndAssertWaits(enterWhen(), guard); in testEnterWhen_initiallyFalse() local
158 TestGuard guard = new TestGuard(true); in testEnterWhen_alreadyOccupied() local
160 thread1.callAndAssertBlocks(enterWhen(), guard); in testEnterWhen_alreadyOccupied() local
166 TestGuard guard = new TestGuard(true); in testEnterIf_initiallyTrue() local
172 TestGuard guard = new TestGuard(false); in testEnterIf_initiallyFalse() local
178 TestGuard guard = new TestGuard(true); in testEnterIf_alreadyOccupied() local
180 thread1.callAndAssertBlocks(enterIf(), guard); in testEnterIf_alreadyOccupied() local
[all …]
/external/llvm-project/lldb/source/API/
DSBBreakpointLocation.cpp97 std::lock_guard<std::recursive_mutex> guard( in GetLoadAddress() local
110 std::lock_guard<std::recursive_mutex> guard( in SetEnabled() local
121 std::lock_guard<std::recursive_mutex> guard( in IsEnabled() local
133 std::lock_guard<std::recursive_mutex> guard( in GetHitCount() local
145 std::lock_guard<std::recursive_mutex> guard( in GetIgnoreCount() local
157 std::lock_guard<std::recursive_mutex> guard( in SetIgnoreCount() local
169 std::lock_guard<std::recursive_mutex> guard( in SetCondition() local
180 std::lock_guard<std::recursive_mutex> guard( in GetCondition() local
193 std::lock_guard<std::recursive_mutex> guard( in SetAutoContinue() local
204 std::lock_guard<std::recursive_mutex> guard( in GetAutoContinue() local
[all …]
DSBBreakpoint.cpp126 std::lock_guard<std::recursive_mutex> guard( in ClearAllBreakpointSites() local
141 std::lock_guard<std::recursive_mutex> guard( in FindLocationByAddress() local
162 std::lock_guard<std::recursive_mutex> guard( in FindLocationIDByAddress() local
183 std::lock_guard<std::recursive_mutex> guard( in FindLocationByID() local
199 std::lock_guard<std::recursive_mutex> guard( in GetLocationAtIndex() local
213 std::lock_guard<std::recursive_mutex> guard( in SetEnabled() local
224 std::lock_guard<std::recursive_mutex> guard( in IsEnabled() local
237 std::lock_guard<std::recursive_mutex> guard( in SetOneShot() local
248 std::lock_guard<std::recursive_mutex> guard( in IsOneShot() local
260 std::lock_guard<std::recursive_mutex> guard( in IsInternal() local
[all …]
DSBBreakpointName.cpp221 std::lock_guard<std::recursive_mutex> guard( in SetEnabled() local
245 std::lock_guard<std::recursive_mutex> guard( in IsEnabled() local
258 std::lock_guard<std::recursive_mutex> guard( in SetOneShot() local
272 std::lock_guard<std::recursive_mutex> guard( in IsOneShot() local
285 std::lock_guard<std::recursive_mutex> guard( in SetIgnoreCount() local
299 std::lock_guard<std::recursive_mutex> guard( in GetIgnoreCount() local
313 std::lock_guard<std::recursive_mutex> guard( in SetCondition() local
327 std::lock_guard<std::recursive_mutex> guard( in GetCondition() local
341 std::lock_guard<std::recursive_mutex> guard( in SetAutoContinue() local
355 std::lock_guard<std::recursive_mutex> guard( in GetAutoContinue() local
[all …]
DSBWatchpoint.cpp105 std::lock_guard<std::recursive_mutex> guard( in GetHardwareIndex() local
120 std::lock_guard<std::recursive_mutex> guard( in GetWatchAddress() local
135 std::lock_guard<std::recursive_mutex> guard( in GetWatchSize() local
149 std::lock_guard<std::recursive_mutex> guard(target.GetAPIMutex()); in SetEnabled() local
168 std::lock_guard<std::recursive_mutex> guard( in IsEnabled() local
181 std::lock_guard<std::recursive_mutex> guard( in GetHitCount() local
194 std::lock_guard<std::recursive_mutex> guard( in GetIgnoreCount() local
206 std::lock_guard<std::recursive_mutex> guard( in SetIgnoreCount() local
217 std::lock_guard<std::recursive_mutex> guard( in GetCondition() local
230 std::lock_guard<std::recursive_mutex> guard( in SetCondition() 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.java433 public void enterWhen(Guard guard) throws InterruptedException { in enterWhen()
463 public boolean enterWhen(Guard guard, long time, TimeUnit unit) throws InterruptedException { in enterWhen()
515 public void enterWhenUninterruptibly(Guard guard) { in enterWhenUninterruptibly()
543 public boolean enterWhenUninterruptibly(Guard guard, long time, TimeUnit unit) { in enterWhenUninterruptibly()
609 public boolean enterIf(Guard guard) { in enterIf()
633 public boolean enterIf(Guard guard, long time, TimeUnit unit) { in enterIf()
658 public boolean enterIfInterruptibly(Guard guard) throws InterruptedException { in enterIfInterruptibly()
682 public boolean enterIfInterruptibly(Guard guard, long time, TimeUnit unit) in enterIfInterruptibly()
710 public boolean tryEnterIf(Guard guard) { in tryEnterIf()
735 public void waitFor(Guard guard) throws InterruptedException { in waitFor()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/debugging/internal/
Ddemangle.cc279 ComplexityGuard guard(state); in ParseOneCharToken() local
292 ComplexityGuard guard(state); in ParseTwoCharToken() local
305 ComplexityGuard guard(state); in ParseCharClass() local
600 ComplexityGuard guard(state); in ParseMangledName() local
609 ComplexityGuard guard(state); in ParseEncoding() local
631 ComplexityGuard guard(state); in ParseName() local
661 ComplexityGuard guard(state); in ParseUnscopedName() local
687 ComplexityGuard guard(state); in ParseNestedName() local
713 ComplexityGuard guard(state); in ParsePrefix() local
742 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/abseil-cpp/absl/debugging/internal/
Ddemangle.cc279 ComplexityGuard guard(state); in ParseOneCharToken() local
292 ComplexityGuard guard(state); in ParseTwoCharToken() local
305 ComplexityGuard guard(state); in ParseCharClass() local
600 ComplexityGuard guard(state); in ParseMangledName() local
609 ComplexityGuard guard(state); in ParseEncoding() local
631 ComplexityGuard guard(state); in ParseName() local
661 ComplexityGuard guard(state); in ParseUnscopedName() local
687 ComplexityGuard guard(state); in ParseNestedName() local
713 ComplexityGuard guard(state); in ParsePrefix() local
742 ComplexityGuard guard(state); in ParseUnqualifiedName() local
[all …]
/external/llvm-project/lldb/source/Interpreter/
DCommandHistory.cpp21 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetSize() local
26 std::lock_guard<std::recursive_mutex> guard(m_mutex); in IsEmpty() local
32 std::lock_guard<std::recursive_mutex> guard(m_mutex); in FindString() local
65 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetStringAtIndex() local
76 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetRecentmostString() local
83 std::lock_guard<std::recursive_mutex> guard(m_mutex); in AppendString() local
94 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Clear() local
100 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Dump() local
/external/llvm-project/lldb/source/Target/
DThreadList.cpp41 std::lock_guard<std::recursive_mutex> guard(GetMutex(), std::adopt_lock); in operator =() local
83 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in GetSize() local
91 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in GetThreadAtIndex() local
103 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in FindThreadByID() local
121 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in FindThreadByProtocolID() local
139 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in RemoveThreadByID() local
159 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in RemoveThreadByProtocolID() local
180 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in GetThreadSPForThreadPtr() local
195 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in GetBackingThread() local
209 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in FindThreadByIndexID() local
[all …]
DSectionLoadHistory.cpp18 std::lock_guard<std::recursive_mutex> guard(m_mutex); in IsEmpty() local
23 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Clear() local
28 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetLastStopID() local
97 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetCurrentSectionLoadList() local
107 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetSectionLoadAddress() local
117 std::lock_guard<std::recursive_mutex> guard(m_mutex); in ResolveLoadAddress() local
127 std::lock_guard<std::recursive_mutex> guard(m_mutex); in SetSectionLoadAddress() local
138 std::lock_guard<std::recursive_mutex> guard(m_mutex); in SetSectionUnloaded() local
148 std::lock_guard<std::recursive_mutex> guard(m_mutex); in SetSectionUnloaded() local
156 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Dump() local
DJITLoaderList.cpp21 std::lock_guard<std::recursive_mutex> guard(m_jit_loaders_mutex); in Append() local
26 std::lock_guard<std::recursive_mutex> guard(m_jit_loaders_mutex); in Remove() local
35 std::lock_guard<std::recursive_mutex> guard(m_jit_loaders_mutex); in GetLoaderAtIndex() local
40 std::lock_guard<std::recursive_mutex> guard(m_jit_loaders_mutex); in DidLaunch() local
46 std::lock_guard<std::recursive_mutex> guard(m_jit_loaders_mutex); in DidAttach() local
52 std::lock_guard<std::recursive_mutex> guard(m_jit_loaders_mutex); in ModulesDidLoad() local
/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/llvm-project/lldb/source/DataFormatters/
DTypeCategoryMap.cpp28 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in Add() local
35 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in Delete() local
47 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in Enable() local
55 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in Disable() local
63 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in Enable() local
85 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in Disable() local
95 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in EnableAllCategories() local
118 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in DisableAllCategories() local
126 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in Clear() local
134 std::lock_guard<std::recursive_mutex> guard(m_map_mutex); in Get() local
[all …]
/external/llvm-project/lldb/source/Breakpoint/
DBreakpointLocationList.cpp31 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Create() local
70 std::lock_guard<std::recursive_mutex> guard(m_mutex); in FindByID() local
82 std::lock_guard<std::recursive_mutex> guard(m_mutex); in FindInModule() local
98 std::lock_guard<std::recursive_mutex> guard(m_mutex); in FindByAddress() local
126 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Dump() local
137 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetByIndex() local
146 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetByIndex() local
155 std::lock_guard<std::recursive_mutex> guard(m_mutex); in ClearAllBreakpointSites() local
162 std::lock_guard<std::recursive_mutex> guard(m_mutex); in ResolveAllBreakpointSites() local
173 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetHitCount() local
[all …]
DBreakpointList.cpp32 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Add() local
46 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Remove() local
64 std::lock_guard<std::recursive_mutex> guard(m_mutex); in RemoveInvalidLocations() local
70 std::lock_guard<std::recursive_mutex> guard(m_mutex); in SetEnabledAll() local
76 std::lock_guard<std::recursive_mutex> guard(m_mutex); in SetEnabledAllowed() local
83 std::lock_guard<std::recursive_mutex> guard(m_mutex); in RemoveAll() local
95 std::lock_guard<std::recursive_mutex> guard(m_mutex); in RemoveAllowed() local
125 std::lock_guard<std::recursive_mutex> guard(m_mutex); in FindBreakpointByID() local
154 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Dump() local
166 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetBreakpointAtIndex() local
[all …]
DBreakpointSiteList.cpp26 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Add() local
64 std::lock_guard<std::recursive_mutex> guard(m_mutex); in Remove() local
74 std::lock_guard<std::recursive_mutex> guard(m_mutex); in RemoveByAddress() local
97 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetIDIterator() local
105 std::lock_guard<std::recursive_mutex> guard(m_mutex); in GetIDConstIterator() local
112 std::lock_guard<std::recursive_mutex> guard(m_mutex); in FindByID() local
123 std::lock_guard<std::recursive_mutex> guard(m_mutex); in FindByID() local
134 std::lock_guard<std::recursive_mutex> guard(m_mutex); in FindByAddress() local
143 std::lock_guard<std::recursive_mutex> guard(m_mutex); in BreakpointSiteContainsBreakpoint() local
166 std::lock_guard<std::recursive_mutex> guard(m_mutex); in ForEach() local
[all …]
DBreakpointSite.cpp58 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in ShouldStop() local
65 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in IsBreakpointAtThisSite() local
85 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in GetDescription() local
126 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in AddOwner() local
132 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in RemoveOwner() local
138 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in GetNumberOfOwners() local
143 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in GetOwnerAtIndex() local
148 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in ValidForThisThread() local
153 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in BumpHitCounts() local
203 std::lock_guard<std::recursive_mutex> guard(m_owners_mutex); in CopyOwnersList() local
/external/angle/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/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
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/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/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/llvm-project/lldb/source/Core/
DModuleList.cpp163 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in AppendImpl() local
178 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in ReplaceEquivalent() local
205 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in AppendIfNeeded() local
234 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in RemoveImpl() local
274 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in RemoveIfOrphaned() local
323 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in Remove() local
340 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in ClearImpl() local
347 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in GetModulePointerAtIndex() local
358 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in GetModuleAtIndex() local
378 std::lock_guard<std::recursive_mutex> guard(m_modules_mutex); in FindFunctions() local
[all …]

12345678910>>...16