Home
last modified time | relevance | path

Searched refs:guard (Results 1 - 25 of 512) sorted by relevance

12345678910>>...21

/third_party/unity/extras/memory/src/
H A Dunity_memory.c70 Guard* guard; in unity_malloc() local
86 guard = NULL; in unity_malloc()
91 guard = (Guard*)(void*)(&unity_heap[heap_index]); in unity_malloc()
95 guard = (Guard*)UNITY_MALLOC(total_size); in unity_malloc()
97 if (guard == NULL) return NULL; in unity_malloc()
99 guard->size = size; in unity_malloc()
100 guard->guard_space = 0; in unity_malloc()
101 mem = (char*)&(guard[1]); in unity_malloc()
109 Guard* guard = (Guard*)mem; in isOverrun() local
111 guard in isOverrun()
118 Guard* guard = (Guard*)mem; release_memory() local
165 Guard* guard = (Guard*)oldMem; unity_realloc() local
[all...]
/third_party/vixl/src/aarch32/
H A Dmacro-assembler-aarch32.h90 ExactAssemblyScopeWithoutPoolsCheck guard(this,
115 ExactAssemblyScopeWithoutPoolsCheck guard(this,
646 MacroEmissionCheckScope guard(this, pool_policy); in MacroAssembler()
648 ITScope it_scope(this, &cond, guard); in MacroAssembler()
650 ITScope it_scope(allocator_, this, &cond, guard); in MacroAssembler()
673 MacroEmissionCheckScope guard(this, pool_policy); in MacroAssembler()
675 ITScope it_scope(this, &cond, guard); in MacroAssembler()
677 ITScope it_scope(allocator_, this, &cond, guard); in MacroAssembler()
698 MacroEmissionCheckScope guard(this, pool_policy); in MacroAssembler()
700 ITScope it_scope(this, &cond, guard); in MacroAssembler()
[all...]
/foundation/multimodalinput/input/service/connect_manager/src/
H A Dmultimodal_input_connect_manager.cpp56 std::lock_guard<std::mutex> guard(lock_); in AllocSocketPair()
78 std::lock_guard<std::mutex> guard(lock_); in GetDisplayBindInfo()
86 std::lock_guard<std::mutex> guard(lock_); in GetAllMmiSubscribedEvents()
93 std::lock_guard<std::mutex> guard(lock_); in SetDisplayBind()
100 std::lock_guard<std::mutex> guard(lock_); in GetWindowPid()
108 std::lock_guard<std::mutex> guard(lock_); in AddInputEventFilter()
115 std::lock_guard<std::mutex> guard(lock_); in NotifyNapOnline()
122 std::lock_guard<std::mutex> guard(lock_); in RemoveInputEventObserver()
129 std::lock_guard<std::mutex> guard(lock_); in RemoveInputEventFilter()
136 std::lock_guard<std::mutex> guard(lock in SetMouseScrollRows()
[all...]
/third_party/vixl/src/aarch64/
H A Dmacro-assembler-aarch64.h1132 SingleEmissionCheckScope guard(this); in Adr()
1138 SingleEmissionCheckScope guard(this); in Adrp()
1145 SingleEmissionCheckScope guard(this); in Asr()
1153 SingleEmissionCheckScope guard(this); in Asr()
1183 SingleEmissionCheckScope guard(this); in Bfm()
1193 SingleEmissionCheckScope guard(this); in Bfi()
1199 SingleEmissionCheckScope guard(this); in Bfc()
1209 SingleEmissionCheckScope guard(this); in Bfxil()
1217 SingleEmissionCheckScope guard(this); in Bl()
1222 SingleEmissionCheckScope guard(thi in Bl()
[all...]
H A Dmacro-assembler-sve-aarch64.cc61 SingleEmissionCheckScope guard(this); in AddSubHelper()
79 MovprfxHelperScope guard(this, zd, zn); in TrySingleAddSub()
101 MovprfxHelperScope guard(this, zd, zn); in IntWideImmHelper()
108 MovprfxHelperScope guard(this, zd, zn); in IntWideImmHelper()
198 SingleEmissionCheckScope guard(this); in Addpl()
213 MacroEmissionCheckScope guard(this); in Addpl()
236 MacroEmissionCheckScope guard(this); in Addpl()
267 SingleEmissionCheckScope guard(this); in Addvl()
291 MacroEmissionCheckScope guard(this); in Addvl()
372 SingleEmissionCheckScope guard(thi in Cpy()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/
H A Ddemangle.cc280 ComplexityGuard guard(state); in ParseOneCharToken()
281 if (guard.IsTooComplex()) return false; in ParseOneCharToken()
293 ComplexityGuard guard(state); in ParseTwoCharToken()
294 if (guard.IsTooComplex()) return false; in ParseTwoCharToken()
306 ComplexityGuard guard(state); in ParseCharClass()
307 if (guard.IsTooComplex()) return false; in ParseCharClass()
608 ComplexityGuard guard(state); in ParseMangledName()
609 if (guard.IsTooComplex()) return false; in ParseMangledName()
617 ComplexityGuard guard(state); in ParseEncoding()
618 if (guard in ParseEncoding()
[all...]
/third_party/node/deps/v8/src/libplatform/
H A Ddefault-foreground-task-runner.cc30 base::MutexGuard guard(&lock_); in Terminate()
48 base::MutexGuard guard(&lock_); in PostTask()
49 PostTaskLocked(std::move(task), kNestable, guard); in PostTask() local
68 base::MutexGuard guard(&lock_); in PostDelayedTask()
69 PostDelayedTaskLocked(std::move(task), delay_in_seconds, kNestable, guard); in PostDelayedTask() local
74 base::MutexGuard guard(&lock_); in PostNonNestableDelayedTask()
75 PostDelayedTaskLocked(std::move(task), delay_in_seconds, kNonNestable, guard); in PostNonNestableDelayedTask() local
80 base::MutexGuard guard(&lock_); in PostIdleTask()
91 base::MutexGuard guard(&lock_); in PostNonNestableTask()
92 PostTaskLocked(std::move(task), kNonNestable, guard); in PostNonNestableTask() local
107 MoveExpiredDelayedTasks( const base::MutexGuard& guard) MoveExpiredDelayedTasks() argument
113 PostTaskLocked(std::move(task), nestability, guard); MoveExpiredDelayedTasks() local
[all...]
H A Dtask-queue.cc19 base::MutexGuard guard(&lock_); in ~TaskQueue()
25 base::MutexGuard guard(&lock_); in Append()
34 base::MutexGuard guard(&lock_); in GetNext()
51 base::MutexGuard guard(&lock_); in Terminate()
60 base::MutexGuard guard(&lock_); in BlockUntilQueueEmptyForTesting()
/foundation/window/window_manager/utils/include/
H A Dthread_safety_annotations.h97 explicit ScopedGuard(const Guard& guard) ACQUIRE(guard) {} in ACQUIRE()
107 #define LOCK_GUARD(guard) \
108 ACQUIRE(guard) RELEASE(guard)
111 #define LOCK_GUARD_TWO(guard, expr) \
112 (OHOS::Rosen::ScopedGuard(guard), expr)
115 #define LOCK_GUARD_EXPR(guard, expr) \
117 OHOS::Rosen::ScopedGuard lock(guard); \
122 #define CREATE_THREAD_SAFETY_GUARD(opt1, opt2, guard,
[all...]
/third_party/cJSON/tests/unity/extras/fixture/src/
H A Dunity_fixture.c184 Guard* guard; in unity_malloc() local
198 guard = NULL; in unity_malloc()
202 guard = (Guard*)&unity_heap[heap_index]; in unity_malloc()
206 guard = (Guard*)UNITY_FIXTURE_MALLOC(total_size); in unity_malloc()
208 if (guard == NULL) return NULL; in unity_malloc()
210 guard->size = size; in unity_malloc()
211 guard->guard_space = 0; in unity_malloc()
212 mem = (char*)&(guard[1]); in unity_malloc()
220 Guard* guard = (Guard*)mem; in isOverrun() local
222 guard in isOverrun()
229 Guard* guard = (Guard*)mem; release_memory() local
270 Guard* guard = (Guard*)oldMem; unity_realloc() local
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/engine/
H A Dinternal_access.h40 CORE_NS::ScopedHandle<Type> guard { params.handle };
41 return guard ? value.GetData(UidFromType<AccessType>(), (void*)((uintptr_t) & *guard + params.Offset()),
47 CORE_NS::ScopedHandle<const Type> guard { params.handle };
48 return guard ? out.SetData(UidFromType<AccessType>(), (const void*)((uintptr_t) & *guard + params.Offset()),
76 CORE_NS::ScopedHandle<Type[]> guard { params.handle };
77 if (guard && params.property.metaData.containerMethods) {
84 ((Type*)((uintptr_t) & *guard + params.Offset()))[i] = vec[i];
100 CORE_NS::ScopedHandle<const Type[]> guard { param
[all...]
/foundation/ai/ai_engine/services/common/platform/lock/source/
H A Drw_lock.cpp29 std::unique_lock<std::mutex> guard(mutex_); in LockRead()
30 condRead_.wait(guard, [=]()->bool { return writeCnt_ == 0; }); in LockRead()
36 std::unique_lock<std::mutex> guard(mutex_); in LockWrite()
38 condWrite_.wait(guard, [=]()->bool { return (readCnt_ == 0) && (!writeFlag_); }); in LockWrite()
44 std::unique_lock<std::mutex> guard(mutex_); in UnLockRead()
52 std::unique_lock<std::mutex> guard(mutex_); in UnLockWrite()
/third_party/jerryscript/tools/
H A Dgen-magic-strings.py104 def process_guard(guard):
108 if guard.startswith('ndef '):
109 guard = guard.replace('ndef ', '!defined (', 1) + ')'
110 elif guard.startswith('def '):
111 guard = guard.replace('def ', 'defined (', 1) + ')'
112 return guard
169 # Calculate the most compact guard, i.e., if a magic string is
184 guards = {tuple(sorted(guard)) fo
[all...]
/third_party/mesa3d/src/compiler/isaspec/
H A Ddecode.py219 #ifndef _${guard}_
220 #define _${guard}_
260 #endif /* _${guard}_ */
287 #ifndef _${guard}_
288 #define _${guard}_
292 #endif /* _${guard}_ */
304 guard = os.path.basename(glue_h).upper().replace("-", "_").replace(".", "_") variable
305 f.write(Template(glue).render(guard=guard, isa=os.path.basename(dst_h)))
311 guard variable
[all...]
/third_party/typescript/tests/baselines/reference/
H A DtypeGuardOfFormThisMember.js62 let guard: GenericGuard<File>;
63 if (guard.isLeader) {
64 guard.lead();
66 else if (guard.isFollower) {
67 guard.follow();
164 var guard; variable
165 if (guard.isLeader) {
166 guard.lead();
168 else if (guard.isFollower) {
169 guard
[all...]
/foundation/ability/form_fwk/services/src/
H A Dform_rdb_data_mgr.cpp120 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex_); in InitFormRdbTable()
141 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex_); in ExecuteSql()
153 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex_); in ExecuteSql()
183 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex_); in InsertData()
197 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex_); in InsertData()
229 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex_); in InsertData()
243 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex_); in InsertData()
275 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex_); in DeleteData()
288 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex_); in DeleteData()
318 std::shared_lock<std::shared_mutex> guard(rdbStoreMutex in QueryData()
[all...]
H A Dform_report.cpp40 std::lock_guard<std::mutex> guard(formReport_); in SetFormRecordInfo()
61 std::lock_guard<std::mutex> guard(formReport_); in SetStartAquireTime()
74 std::lock_guard<std::mutex> guard(formReport_); in SetEndAquireTime()
91 std::lock_guard<std::mutex> guard(formReport_); in SetStartBindTime()
104 std::lock_guard<std::mutex> guard(formReport_); in SetEndBindTime()
114 std::lock_guard<std::mutex> guard(formReport_); in SetStartGetTime()
127 std::lock_guard<std::mutex> guard(formReport_); in SetEndGetTime()
137 std::lock_guard<std::mutex> guard(formReport_); in SetDurationStartTime()
151 std::lock_guard<std::mutex> guard(formReport_); in SetDurationEndTime()
163 std::lock_guard<std::mutex> guard(formReport in GetAddFormFinish()
[all...]
/foundation/filemanagement/user_file_service/services/native/file_access_service/include/
H A Dholder_manager.h38 std::lock_guard<std::mutex> guard(holderMutex_); in ~HolderManager()
49 std::lock_guard<std::mutex> guard(holderMutex_); in save()
57 std::lock_guard<std::mutex> guard(holderMutex_); in get()
67 std::lock_guard<std::mutex> guard(holderMutex_); in pop()
81 std::lock_guard<std::mutex> guard(holderMutex_); in release()
92 std::lock_guard<std::mutex> guard(holderMutex_); in exist()
110 std::lock_guard<std::mutex> guard(holderMutex_); in getAll()
118 std::lock_guard<std::mutex> guard(holderMutex_); in isEmpty()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/
H A Dimage_holder_manager.h34 std::lock_guard<std::mutex> guard(holderMutex_); in ~ImageHolderManager()
43 std::lock_guard<std::mutex> guard(holderMutex_); in save()
53 std::lock_guard<std::mutex> guard(holderMutex_); in save()
59 std::lock_guard<std::mutex> guard(holderMutex_); in get()
69 std::lock_guard<std::mutex> guard(holderMutex_); in pop()
83 std::lock_guard<std::mutex> guard(holderMutex_); in release()
91 std::lock_guard<std::mutex> guard(holderMutex_); in exist()
102 std::lock_guard<std::mutex> guard(idMutex_); in genId()
/foundation/multimodalinput/input/frameworks/proxy/event_handler/src/
H A Dinput_manager_impl.cpp103 std::lock_guard<std::mutex> guard(mtx_); in GetDisplayBindInfo()
115 std::lock_guard<std::mutex> guard(mtx_); in GetAllMmiSubscribedEvents()
126 std::lock_guard<std::mutex> guard(mtx_); in SetDisplayBind()
138 std::lock_guard<std::mutex> guard(mtx_); in GetWindowPid()
145 std::lock_guard<std::mutex> guard(mtx_); in UpdateDisplayInfo()
166 std::lock_guard<std::mutex> guard(mtx_); in UpdateWindowInfo()
240 std::lock_guard<std::mutex> guard(mtx_); in SetEnhanceConfig()
254 std::lock_guard<std::mutex> guard(mtx_); in AddInputEventFilter()
279 std::lock_guard<std::mutex> guard(mtx_); in AddInputEventObserver()
293 std::lock_guard<std::mutex> guard(mtx in RemoveInputEventObserver()
[all...]
/kernel/linux/linux-5.10/scripts/atomic/
H A Dgen-atomic-instrumented.sh85 local guard="$(gen_guard "${meta}" "${atomic}" "${pfx}" "${name}" "${sfx}" "${order}")"
93 [ ! -z "${guard}" ] && printf "#if ${guard}\n"
105 [ ! -z "${guard}" ] && printf "#endif\n"
129 local guard="defined(arch_${name}${sfx})"
131 [ -z "${sfx}" ] && guard="!defined(arch_${name}_relaxed) || defined(arch_${name})"
133 printf "#if ${guard}\n"
/third_party/node/deps/v8/src/heap/
H A Dcollection-barrier.cc25 base::MutexGuard guard(&mutex_); in TryRequestGC()
56 base::MutexGuard guard(&mutex_); in NotifyShutdownRequested()
63 base::MutexGuard guard(&mutex_); in ResumeThreadsAwaitingCollection()
72 base::MutexGuard guard(&mutex_); in CancelCollectionAndResumeThreads()
86 base::MutexGuard guard(&mutex_); in AwaitCollectionBackground()
97 // The first thread needs to activate the stack guard and post the task. in AwaitCollectionBackground()
101 base::MutexGuard guard(&mutex_); in AwaitCollectionBackground()
124 base::MutexGuard guard(&mutex_); in StopTimeToCollectionTimer()
/foundation/ai/ai_engine/services/server/communication_adapter/source/
H A Dsa_async_handler.cpp52 ReadGuard<RwLock> guard(rwLock_); in StopClientListenerHandler()
61 WriteGuard<RwLock> guard(rwLock_); in RemoveClientListenerHandler()
71 ReadGuard<RwLock> guard(rwLock_); in FindClientListenerHandler()
84 WriteGuard<RwLock> guard(rwLock_); in AddClientListenerHandler()
91 WriteGuard<RwLock> guard(rwLock_); in RemoveTransaction()
97 ReadGuard<RwLock> guard(rwLock_); in IsExistTransaction()
104 WriteGuard<RwLock> guard(rwLock_); in SaveTransaction()
128 ReadGuard<RwLock> guard(rwLock_); in StartAsyncProcess()
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_cache.cpp52 const std::lock_guard<std::mutex> guard(mutex_); in Exists()
59 const std::lock_guard<std::mutex> guard(mutex_); in Add()
68 const std::lock_guard<std::mutex> guard(mutex_); in Get()
75 const std::lock_guard<std::mutex> guard(mutex_); in Size()
81 const std::lock_guard<std::mutex> guard(mutex_); in Reset()
87 const std::lock_guard<std::mutex> guard(mutex_); in Serialize()
101 const std::lock_guard<std::mutex> guard(mutex_); in Deserialize()
146 const std::lock_guard<std::mutex> guard(mutex_); in Dump()
/foundation/graphic/graphic_2d/rosen/modules/texgine/src/
H A Dfont_descriptor_mgr.cpp35 std::unique_lock<std::mutex> guard(parserMtx_); in ParseAllFontSource()
42 std::unique_lock<std::mutex> guard(parserMtx_); in ClearFontFileCache()
48 std::unique_lock<std::mutex> guard(parserMtx_); in MatchFontDescriptors()
55 std::unique_lock<std::mutex> guard(parserMtx_); in GetFontDescSharedPtrByFullName()
62 std::unique_lock<std::mutex> guard(parserMtx_); in GetSystemFontFullNamesByType()

Completed in 40 milliseconds

12345678910>>...21