Home
last modified time | relevance | path

Searched defs:thread (Results 1 – 25 of 629) sorted by relevance

12345678910>>...26

/ohos5.0/drivers/hdf_core/framework/utils/src/
H A Dhdf_thread_ex.c13 void HdfThreadStart(struct HdfThread *thread) in HdfThreadStart()
27 void HdfThreadStop(struct HdfThread *thread) in HdfThreadStop()
36 bool HdfThreadIsRunning(struct HdfThread *thread) in HdfThreadIsRunning()
46 struct HdfThread *thread = (struct HdfThread *)argv; in HdfThreadMain() local
57 void HdfThreadConstruct(struct HdfThread *thread) in HdfThreadConstruct()
69 void HdfThreadDestruct(struct HdfThread *thread) in HdfThreadDestruct()
78 struct HdfThread *thread = (struct HdfThread *)OsalMemCalloc(sizeof(struct HdfThread)); in HdfThreadNewInstance() local
85 void HdfThreadFreeInstance(struct HdfThread *thread) in HdfThreadFreeInstance()
/ohos5.0/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
H A Dhc_thread.c28 HcThread* thread = (HcThread*)args; in StaticThreadFunc() local
53 int Start(struct HcThreadT *thread) in Start()
85 void Join(struct HcThreadT *thread) in Join()
97 void BizWait(struct HcThreadT *thread) in BizWait()
105 void BizNotify(struct HcThreadT *thread) in BizNotify()
113 int32_t InitThread(HcThread *thread, ThreadFunc func, size_t stackSize, const char *threadName) in InitThread()
151 void DestroyThread(HcThread *thread) in DestroyThread()
/ohos5.0/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/
H A Dhc_thread.c24 HcThread *thread = (HcThread*)args; in StaticThreadFunc() local
46 int Start(struct HcThreadT *thread) in Start()
78 void Join(struct HcThreadT *thread) in Join()
96 void BizWait(struct HcThreadT *thread) in BizWait()
104 void BizNotify(struct HcThreadT *thread) in BizNotify()
112 int32_t InitThread(HcThread *thread, ThreadFunc func, size_t stackSize, const char *threadName) in InitThread()
151 void DestroyThread(HcThread *thread) in DestroyThread()
/aosp12/system/bt/osi/test/
H A Dthread_test.cc14 thread_t* thread = thread_new("test_thread"); in TEST_F() local
20 thread_t* thread = thread_new("test_thread"); in TEST_F() local
25 thread_t* thread = thread_new("test_name"); in TEST_F() local
31 thread_t* thread = thread_new("0123456789abcdef"); in TEST_F() local
37 thread_t* thread = thread_new("0123456789abcdefg"); in TEST_F() local
43 thread_t* thread = (thread_t*)context; in thread_is_self_fn() local
48 thread_t* thread = thread_new("test_thread"); in TEST_F() local
54 thread_t* thread = thread_new("test_thread"); in TEST_F() local
/ohos5.0/base/security/device_auth/deps_adapter/os_adapter/impl/src/
H A Dhc_task_thread.c40 static void PushTask(struct HcTaskThreadT* thread, HcTaskBase* task) in PushTask()
54 static void Clear(struct HcTaskThreadT* thread) in Clear()
69 static void StopAndClear(struct HcTaskThreadT* thread) in StopAndClear()
80 static int32_t StartTaskThread(struct HcTaskThreadT* thread) in StartTaskThread()
96 HcTaskThread* thread = (HcTaskThread*)args; in TaskThreadLoop() local
121 int32_t InitHcTaskThread(HcTaskThread* thread, size_t stackSize, const char* threadName) in InitHcTaskThread()
144 void DestroyHcTaskThread(HcTaskThread* thread) in DestroyHcTaskThread()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DVibrationThreadTest.java139 VibrationThread thread = startThreadAndDispatcher(vibrationId, effect); in vibrate_noVibrator_ignoresVibration() local
153 VibrationThread thread = startThreadAndDispatcher(vibrationId, effect); in vibrate_missingVibrators_ignoresVibration() local
166 VibrationThread thread = startThreadAndDispatcher(vibrationId, effect); in vibrate_singleVibratorOneShot_runsVibrationAndSetsAmplitude() local
185 VibrationThread thread = startThreadAndDispatcher(vibrationId, effect); in vibrate_oneShotWithoutAmplitudeControl_runsVibrationWithDefaultAmplitude() local
207 VibrationThread thread = startThreadAndDispatcher(vibrationId, effect); in vibrate_singleVibratorWaveform_runsVibrationAndChangesAmplitudes() local
231 VibrationThread thread = startThreadAndDispatcher(vibrationId, effect); in vibrate_singleVibratorRepeatingWaveform_runsVibrationUntilThreadCancelled() local
267 VibrationThread thread = startThreadAndDispatcher(vibrationId, effect); in vibrate_singleVibratorRepeatingShortAlwaysOnWaveform_turnsVibratorOnForASecond() local
289 VibrationThread thread = startThreadAndDispatcher(vibrationId, effect); in vibrate_singleVibratorRepeatingLongAlwaysOnWaveform_turnsVibratorOnForACycle() local
415 VibrationThread thread = startThreadAndDispatcher(vibration); in vibrate_singleVibratorPrebakedAndUnsupportedEffectWithFallback_runsFallback() local
1320 private void waitForCompletion(Thread thread) { in waitForCompletion()
[all …]
/aosp12/system/bt/osi/src/
H A Dthread.cc52 thread_t* thread; member
108 void thread_free(thread_t* thread) { in thread_free()
119 void thread_join(thread_t* thread) { in thread_join()
126 bool thread_post(thread_t* thread, thread_fn func, void* context) { in thread_post()
143 void thread_stop(thread_t* thread) { in thread_stop()
148 bool thread_set_priority(thread_t* thread, int priority) { in thread_set_priority()
161 bool thread_set_rt_priority(thread_t* thread, int priority) { in thread_set_rt_priority()
177 bool thread_is_self(const thread_t* thread) { in thread_is_self()
182 reactor_t* thread_get_reactor(const thread_t* thread) { in thread_get_reactor()
187 const char* thread_name(const thread_t* thread) { in thread_name()
[all …]
/ohos5.0/foundation/ability/ability_runtime/test/unittest/appkit/child_main_thread_test/
H A Dchild_main_thread_test.cpp74 sptr<ChildMainThread> thread = sptr<ChildMainThread>(new (std::nothrow) ChildMainThread()); variable
91 sptr<ChildMainThread> thread = sptr<ChildMainThread>(new (std::nothrow) ChildMainThread()); variable
109 sptr<ChildMainThread> thread = sptr<ChildMainThread>(new (std::nothrow) ChildMainThread()); variable
129 sptr<ChildMainThread> thread = sptr<ChildMainThread>(new (std::nothrow) ChildMainThread()); variable
163 sptr<ChildMainThread> thread = sptr<ChildMainThread>(new (std::nothrow) ChildMainThread()); variable
198 sptr<ChildMainThread> thread = sptr<ChildMainThread>(new (std::nothrow) ChildMainThread()); variable
217 sptr<ChildMainThread> thread = sptr<ChildMainThread>(new (std::nothrow) ChildMainThread()); variable
/aosp12/system/extras/memory_replay/tests/
H A DThreadTest.cpp30 Thread thread; in TEST() local
38 Thread* thread = thread_data->first; in ThreadWaitForReady() local
48 Thread thread; in TEST() local
68 Thread* thread = thread_data->first; in ThreadWaitForPending() local
78 Thread thread; in TEST() local
96 Thread thread; in TEST() local
/ohos5.0/foundation/communication/dsoftbus/tests/adapter/unittest/
H A Dsoftbus_thread_test.cpp468 SoftBusThread thread = 0; variable
483 SoftBusThread thread = 0; variable
502 SoftBusThread thread = 0; variable
522 SoftBusThread thread = 0; variable
541 SoftBusThread thread = 0; variable
560 SoftBusThread thread = 0; variable
579 SoftBusThread thread = 0; variable
598 SoftBusThread thread = 0; variable
618 SoftBusThread thread = 0; variable
635 SoftBusThread thread = 0; variable
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/
H A Dthread_linux.c44 Thread *thread; member
69 Thread *thread = startPromise->thread; in ThreadStartFunc() local
99 int32_t ThreadIsSelf(const Thread *thread) in ThreadIsSelf()
109 static void ThreadStop(Thread *thread) in ThreadStop()
125 Thread *thread = (Thread *)calloc(1, (sizeof(Thread))); in ThreadCreate() local
177 void ThreadDelete(Thread *thread) in ThreadDelete()
191 void ThreadPostTask(Thread *thread, TaskFunc func, void *context) in ThreadPostTask()
205 Reactor *ThreadGetReactor(const Thread *thread) in ThreadGetReactor()
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/osal/src/
H A Dosal_thread.c59 int32_t OsalThreadCreate(struct OsalThread *thread, OsalThreadEntry threadEntry, void *entryPara) in OsalThreadCreate()
84 int32_t OsalThreadBind(struct OsalThread *thread, unsigned int cpuID) in OsalThreadBind()
97 int32_t OsalThreadStart(struct OsalThread *thread, const struct OsalThreadParam *param) in OsalThreadStart()
149 static bool OsalCheckPara(struct OsalThread *thread) in OsalCheckPara()
171 int32_t OsalThreadSuspend(struct OsalThread *thread) in OsalThreadSuspend()
191 int32_t OsalThreadDestroy(struct OsalThread *thread) in OsalThreadDestroy()
207 int32_t OsalThreadResume(struct OsalThread *thread) in OsalThreadResume()
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
H A Dosal_thread.c59 int32_t OsalThreadCreate(struct OsalThread *thread, OsalThreadEntry threadEntry, void *entryPara) in OsalThreadCreate()
84 int32_t OsalThreadBind(struct OsalThread *thread, unsigned int cpuID) in OsalThreadBind()
97 int32_t OsalThreadStart(struct OsalThread *thread, const struct OsalThreadParam *param) in OsalThreadStart()
142 static bool OsalCheckPara(struct OsalThread *thread) in OsalCheckPara()
164 int32_t OsalThreadSuspend(struct OsalThread *thread) in OsalThreadSuspend()
184 int32_t OsalThreadDestroy(struct OsalThread *thread) in OsalThreadDestroy()
200 int32_t OsalThreadResume(struct OsalThread *thread) in OsalThreadResume()
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
H A Dosal_thread.c59 int32_t OsalThreadCreate(struct OsalThread *thread, OsalThreadEntry threadEntry, void *entryPara) in OsalThreadCreate()
84 int32_t OsalThreadBind(struct OsalThread *thread, unsigned int cpuID) in OsalThreadBind()
97 int32_t OsalThreadStart(struct OsalThread *thread, const struct OsalThreadParam *param) in OsalThreadStart()
150 static bool OsalCheckPara(struct OsalThread *thread) in OsalCheckPara()
172 int32_t OsalThreadSuspend(struct OsalThread *thread) in OsalThreadSuspend()
192 int32_t OsalThreadDestroy(struct OsalThread *thread) in OsalThreadDestroy()
208 int32_t OsalThreadResume(struct OsalThread *thread) in OsalThreadResume()
/aosp12/bionic/libc/bionic/
H A Dpthread_internal.cpp48 pthread_t __pthread_internal_add(pthread_internal_t* thread) { in __pthread_internal_add()
61 void __pthread_internal_remove(pthread_internal_t* thread) { in __pthread_internal_remove()
74 static void __pthread_internal_free(pthread_internal_t* thread) { in __pthread_internal_free()
81 void __pthread_internal_remove_and_free(pthread_internal_t* thread) { in __pthread_internal_remove_and_free()
87 pthread_internal_t* thread = __pthread_internal_find(thread_id, caller); in __pthread_internal_gettid() local
92 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(thread_id); in __pthread_internal_find() local
H A Dpthread_exit.cpp53 pthread_internal_t* thread = __get_thread(); in __pthread_cleanup_push() local
62 pthread_internal_t* thread = __get_thread(); in __pthread_cleanup_pop() local
74 pthread_internal_t* thread = __get_thread(); in pthread_exit() local
H A Dpthread_create.cpp89 static void __init_alternate_signal_stack(pthread_internal_t* thread) { in __init_alternate_signal_stack()
137 void __init_additional_stacks(pthread_internal_t* thread) { in __init_additional_stacks()
142 int __init_thread(pthread_internal_t* thread) { in __init_thread()
280 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(stack_top); in __allocate_thread() local
315 pthread_internal_t* thread = __get_thread(); in __set_stack_and_tls_vma_name() local
340 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(arg); in __pthread_start() local
400 pthread_internal_t* thread = tcb->thread(); in pthread_create() local
/ohos5.0/foundation/ai/ai_engine/services/common/platform/threadpool/source/
H A Dthread_pool.cpp69 std::shared_ptr<Thread> thread; in Pop() local
87 void ThreadPool::Push(std::shared_ptr<Thread> &thread) in Push()
111 for (auto &thread : busyThreads_) { in StopThreads() local
125 for (auto &thread : busyThreads_) { in StopThreads() local
142 for (auto &thread : busyThreads_) { in StopThreads() local
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/osal/src/
H A Dosal_thread.c63 int32_t OsalThreadCreate(struct OsalThread *thread, OsalThreadEntry thread_entry, void *entry_para) in OsalThreadCreate()
88 int32_t OsalThreadBind(struct OsalThread *thread, unsigned int cpu_id) in OsalThreadBind()
102 int32_t OsalThreadStart(struct OsalThread *thread, const struct OsalThreadParam *param) in OsalThreadStart()
152 int32_t OsalThreadSuspend(struct OsalThread *thread) in OsalThreadSuspend()
159 int32_t OsalThreadDestroy(struct OsalThread *thread) in OsalThreadDestroy()
173 int32_t OsalThreadResume(struct OsalThread *thread) in OsalThreadResume()
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/inner_api/cpp/
H A Dthread.h23 thread() noexcept in thread() function
29 explicit thread(const char* name, qos qos_, Fn&& fn, Args&&... args) in thread() function
42 explicit thread(qos qos_, Fn&& fn, Args&&... args) in thread() function
71 thread(thread&& th) noexcept in thread() function
/ohos5.0/foundation/resourceschedule/ffrt/src/eu/
H A Dcpuworker_manager.cpp95 CPUEUTask* CPUWorkerManager::PickUpTaskFromGlobalQueue(WorkerThread* thread) in PickUpTaskFromGlobalQueue()
108 CPUEUTask* CPUWorkerManager::PickUpTaskFromLocalQueue(WorkerThread* thread) in PickUpTaskFromLocalQueue()
119 CPUEUTask* CPUWorkerManager::PickUpTaskBatch(WorkerThread* thread) in PickUpTaskBatch()
161 unsigned int CPUWorkerManager::StealTaskBatch(WorkerThread* thread) in StealTaskBatch()
190 PollerRet CPUWorkerManager::TryPoll(const WorkerThread* thread, int timeout) in TryPoll()
219 void CPUWorkerManager::NotifyTaskPicked(const WorkerThread* thread) in NotifyTaskPicked()
224 void CPUWorkerManager::WorkerRetired(WorkerThread* thread) in WorkerRetired()
304 bool CPUWorkerManager::IsExceedRunningThreshold(const WorkerThread* thread) in IsExceedRunningThreshold()
H A Dworker_manager.cpp24 for (auto& thread : tgwrap.threads) { in JoinRtg() local
50 for (auto& thread : tgwrap.threads) { in JoinTG() local
74 for (auto& thread : groupCtl[qos].threads) { in LeaveTG() local
/aosp12/art/runtime/
H A Dthread_list.cc128 for (const auto& thread : list_) { in DumpNativeStacks() local
173 Thread* thread; in DumpUnattachedThreads() local
205 void Run(Thread* thread) override { in Run()
270 for (const auto& thread : list_) { in AssertThreadsAreSuspended() local
325 for (const auto& thread : list_) { in RunCheckpoint() local
888 Thread* thread; in SuspendThreadByPeer() local
1020 Thread* thread = nullptr; in SuspendThreadByThreadId() local
1100 for (const auto& thread : list_) { in FindThreadByThreadId() local
1109 for (const auto& thread : list_) { in FindThreadByTid() local
1365 for (const auto& thread : list_) { in ForEach() local
[all …]
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DProfile.java42 Thread thread; field in Profile.WatchEntry
77 public synchronized void addWatchEntry(Thread thread, int cycleTime) { in addWatchEntry()
87 public synchronized void removeWatchEntry(Thread thread) { in removeWatchEntry()
112 Thread thread = entry.thread; in processList() local
126 Thread thread = entry.thread; in sampleStack() local
139 private WatchEntry findEntry(Thread thread) { in findEntry()
/ohos5.0/drivers/hdf_core/framework/core/adapter/syscall/src/
H A Dhdf_syscall_adapter.c137 static int32_t HdfDevEventReadAndDispatch(struct HdfDevListenerThread *thread, int32_t fd) in HdfDevEventReadAndDispatch()
190 static int32_t AssignPfds(struct HdfDevListenerThread *thread, struct pollfd **pfds, uint16_t *pfdS… in AssignPfds()
242 struct HdfDevListenerThread *thread = (struct HdfDevListenerThread *)para; in HdfDevEventListenTask() local
332 static int32_t HdfDevListenerThreadDoInit(struct HdfDevListenerThread *thread) in HdfDevListenerThreadDoInit()
355 static int32_t HdfDevListenerThreadInit(struct HdfDevListenerThread *thread) in HdfDevListenerThreadInit()
427 static int32_t HdfListenThreadInitPollFds(struct HdfDevListenerThread *thread) in HdfListenThreadInitPollFds()
445 static int32_t HdfDevListenerThreadStart(struct HdfDevListenerThread *thread) in HdfDevListenerThreadStart()
492 struct HdfDevListenerThread *thread = OsalMemCalloc(sizeof(struct HdfDevListenerThread)); in HdfDevListenerThreadObtain() local
618 static void HdfDevListenerThreadFree(struct HdfDevListenerThread *thread) in HdfDevListenerThreadFree()
626 static void HdfDevListenerThreadDestroy(struct HdfDevListenerThread *thread) in HdfDevListenerThreadDestroy()
[all …]

12345678910>>...26