Home
last modified time | relevance | path

Searched refs:thread (Results 1 - 25 of 133) sorted by relevance

123456

/drivers/hdf_core/framework/utils/src/
H A Dhdf_thread_ex.c13 void HdfThreadStart(struct HdfThread *thread) in HdfThreadStart() argument
15 if (thread == NULL) { in HdfThreadStart()
23 OsalThreadStart(&thread->adapter, &param); in HdfThreadStart()
24 thread->status = true; in HdfThreadStart()
27 void HdfThreadStop(struct HdfThread *thread) in HdfThreadStop() argument
29 if (thread == NULL) { in HdfThreadStop()
32 OsalThreadDestroy(&thread->adapter); in HdfThreadStop()
33 thread->status = false; in HdfThreadStop()
36 bool HdfThreadIsRunning(struct HdfThread *thread) in HdfThreadIsRunning() argument
38 if (thread in HdfThreadIsRunning()
46 struct HdfThread *thread = (struct HdfThread *)argv; HdfThreadMain() local
57 HdfThreadConstruct(struct HdfThread *thread) HdfThreadConstruct() argument
69 HdfThreadDestruct(struct HdfThread *thread) HdfThreadDestruct() argument
78 struct HdfThread *thread = (struct HdfThread *)OsalMemCalloc(sizeof(struct HdfThread)); HdfThreadNewInstance() local
85 HdfThreadFreeInstance(struct HdfThread *thread) HdfThreadFreeInstance() argument
[all...]
/drivers/hdf_core/framework/core/adapter/syscall/src/
H A Dhdf_syscall_adapter.c72 static struct HdfSyscallAdapter *HdfFdToAdapterLocked(const struct HdfDevListenerThread *thread, int32_t fd) in HdfFdToAdapterLocked() argument
74 if (thread->adapter != NULL && thread->adapter->fd == fd) { in HdfFdToAdapterLocked()
75 return thread->adapter; in HdfFdToAdapterLocked()
78 if (thread->adapterListPtr == NULL) { in HdfFdToAdapterLocked()
83 DLIST_FOR_EACH_ENTRY(adapter, thread->adapterListPtr, struct HdfSyscallAdapter, listNode) { in HdfFdToAdapterLocked()
93 const struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter, const struct HdfWriteReadBuf *bwr) in HdfDevEventDispatchLocked()
110 if (thread->listenerListPtr != NULL) { in HdfDevEventDispatchLocked()
111 DLIST_FOR_EACH_ENTRY(listener, thread->listenerListPtr, struct HdfDevEventlistener, listNode) { in HdfDevEventDispatchLocked()
137 static int32_t HdfDevEventReadAndDispatch(struct HdfDevListenerThread *thread, int32_ argument
92 HdfDevEventDispatchLocked( const struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter, const struct HdfWriteReadBuf *bwr) HdfDevEventDispatchLocked() argument
190 AssignPfds(struct HdfDevListenerThread *thread, struct pollfd **pfds, uint16_t *pfdSize) AssignPfds() argument
242 struct HdfDevListenerThread *thread = (struct HdfDevListenerThread *)para; HdfDevEventListenTask() local
332 HdfDevListenerThreadDoInit(struct HdfDevListenerThread *thread) HdfDevListenerThreadDoInit() argument
355 HdfDevListenerThreadInit(struct HdfDevListenerThread *thread) HdfDevListenerThreadInit() argument
376 GetValidPfdIndexLocked(struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter) GetValidPfdIndexLocked() argument
413 HdfAddAdapterToPfds(struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter) HdfAddAdapterToPfds() argument
427 HdfListenThreadInitPollFds(struct HdfDevListenerThread *thread) HdfListenThreadInitPollFds() argument
445 HdfDevListenerThreadStart(struct HdfDevListenerThread *thread) HdfDevListenerThreadStart() argument
492 struct HdfDevListenerThread *thread = OsalMemCalloc(sizeof(struct HdfDevListenerThread)); HdfDevListenerThreadObtain() local
533 HdfListenThreadPollAdd(struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter) HdfListenThreadPollAdd() argument
590 HdfListenThreadPollDel(struct HdfDevListenerThread *thread, struct HdfSyscallAdapter *adapter) HdfListenThreadPollDel() argument
618 HdfDevListenerThreadFree(struct HdfDevListenerThread *thread) HdfDevListenerThreadFree() argument
626 HdfDevListenerThreadDestroy(struct HdfDevListenerThread *thread) HdfDevListenerThreadDestroy() argument
1022 GetListenerCount(struct HdfDevListenerThread *thread) GetListenerCount() argument
[all...]
/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() argument
63 if (thread == NULL || threadEntry == NULL) { in OsalThreadCreate()
68 thread->realThread = NULL; in OsalThreadCreate()
79 thread->realThread = para; in OsalThreadCreate()
84 int32_t OsalThreadBind(struct OsalThread *thread, unsigned int cpuID) in OsalThreadBind() argument
88 if (thread == NULL || thread->realThread == NULL) { in OsalThreadBind()
92 para = (struct ThreadWrapper *)thread->realThread; in OsalThreadBind()
97 int32_t OsalThreadStart(struct OsalThread *thread, const struct OsalThreadParam *param) in OsalThreadStart() argument
108 if (thread in OsalThreadStart()
149 OsalCheckPara(struct OsalThread *thread) OsalCheckPara() argument
171 OsalThreadSuspend(struct OsalThread *thread) OsalThreadSuspend() argument
191 OsalThreadDestroy(struct OsalThread *thread) OsalThreadDestroy() argument
207 OsalThreadResume(struct OsalThread *thread) OsalThreadResume() argument
[all...]
/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() argument
63 if (thread == NULL || threadEntry == NULL) { in OsalThreadCreate()
68 thread->realThread = NULL; in OsalThreadCreate()
79 thread->realThread = para; in OsalThreadCreate()
84 int32_t OsalThreadBind(struct OsalThread *thread, unsigned int cpuID) in OsalThreadBind() argument
88 if (thread == NULL || thread->realThread == NULL) { in OsalThreadBind()
92 para = (struct ThreadWrapper *)thread->realThread; in OsalThreadBind()
97 int32_t OsalThreadStart(struct OsalThread *thread, const struct OsalThreadParam *param) in OsalThreadStart() argument
108 if (thread in OsalThreadStart()
142 OsalCheckPara(struct OsalThread *thread) OsalCheckPara() argument
164 OsalThreadSuspend(struct OsalThread *thread) OsalThreadSuspend() argument
184 OsalThreadDestroy(struct OsalThread *thread) OsalThreadDestroy() argument
200 OsalThreadResume(struct OsalThread *thread) OsalThreadResume() argument
[all...]
/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() argument
63 if (thread == NULL || threadEntry == NULL) { in OsalThreadCreate()
68 thread->realThread = NULL; in OsalThreadCreate()
79 thread->realThread = para; in OsalThreadCreate()
84 int32_t OsalThreadBind(struct OsalThread *thread, unsigned int cpuID) in OsalThreadBind() argument
88 if (thread == NULL || thread->realThread == NULL) { in OsalThreadBind()
92 para = (struct ThreadWrapper *)thread->realThread; in OsalThreadBind()
97 int32_t OsalThreadStart(struct OsalThread *thread, const struct OsalThreadParam *param) in OsalThreadStart() argument
108 if (thread in OsalThreadStart()
150 OsalCheckPara(struct OsalThread *thread) OsalCheckPara() argument
172 OsalThreadSuspend(struct OsalThread *thread) OsalThreadSuspend() argument
192 OsalThreadDestroy(struct OsalThread *thread) OsalThreadDestroy() argument
208 OsalThreadResume(struct OsalThread *thread) OsalThreadResume() argument
[all...]
/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() argument
67 if (thread == NULL || thread_entry == NULL) { in OsalThreadCreate()
72 thread->realThread = NULL; in OsalThreadCreate()
82 thread->realThread = wrapper; in OsalThreadCreate()
88 int32_t OsalThreadBind(struct OsalThread *thread, unsigned int cpu_id) in OsalThreadBind() argument
92 if (thread == NULL || thread->realThread == NULL) { in OsalThreadBind()
96 wrapper = (struct thread_wrapper *)thread->realThread; in OsalThreadBind()
102 int32_t OsalThreadStart(struct OsalThread *thread, const struct OsalThreadParam *param) in OsalThreadStart() argument
110 if (thread in OsalThreadStart()
152 OsalThreadSuspend(struct OsalThread *thread) OsalThreadSuspend() argument
159 OsalThreadDestroy(struct OsalThread *thread) OsalThreadDestroy() argument
173 OsalThreadResume(struct OsalThread *thread) OsalThreadResume() argument
[all...]
/drivers/hdf_core/interfaces/inner_api/osal/shared/
H A Dosal_thread.h16 * including the memory management, thread, mutex, spinlock, semaphore, timer, file, interrupt, time,
26 * @brief Declares thread types and interfaces.
44 * @brief Enumerates thread priorities.
57 * @brief Describes thread parameters.
64 size_t stackSize; /**< Thread stack size, which may cause thread stack overflow if it is too small */
70 * @brief Defines a thread callback function type.
78 * @brief Describes a thread.
84 void *realThread; /**< Pointer to a created thread object */
88 * @brief Defines a thread macro.
93 #define OSAL_DECLARE_THREAD(thread) struc
[all...]
/drivers/hdf_core/framework/utils/include/
H A Dhdf_thread_ex.h23 void (*Start)(struct HdfThread *thread);
24 void (*Stop)(struct HdfThread *thread);
27 void HdfThreadConstruct(struct HdfThread *thread);
28 void HdfThreadDestruct(struct HdfThread *thread);
30 void HdfThreadFreeInstance(struct HdfThread *thread);
/drivers/hdf_core/framework/support/posix/src/
H A Dosal_thread.c62 int32_t OsalThreadCreate(struct OsalThread *thread, OsalThreadEntry threadEntry, void *entryPara) in OsalThreadCreate() argument
66 if (thread == NULL || threadEntry == NULL) { in OsalThreadCreate()
71 thread->realThread = NULL; in OsalThreadCreate()
80 thread->realThread = para; in OsalThreadCreate()
85 int32_t OsalThreadDestroy(struct OsalThread *thread) in OsalThreadDestroy() argument
87 if (thread != NULL && thread->realThread != NULL) { in OsalThreadDestroy()
88 OsalMemFree(thread->realThread); in OsalThreadDestroy()
89 thread->realThread = NULL; in OsalThreadDestroy()
144 int32_t OsalThreadStart(struct OsalThread *thread, cons argument
[all...]
/drivers/hdf_core/adapter/uhdf2/host/src/
H A Dhdf_device_thread.c94 struct DeviceThread *thread = in DeviceThreadNewInstance() local
96 if (thread != NULL) { in DeviceThreadNewInstance()
97 DeviceThreadConstruct(thread); in DeviceThreadNewInstance()
99 return thread; in DeviceThreadNewInstance()
102 void DeviceThreadFreeInstance(struct DeviceThread *thread) in DeviceThreadFreeInstance() argument
104 if (thread != NULL) { in DeviceThreadFreeInstance()
105 HdfThreadDestruct(&thread->super); in DeviceThreadFreeInstance()
106 OsalMemFree(thread); in DeviceThreadFreeInstance()
/drivers/hdf_core/framework/test/unittest/platform/common/
H A Dcan_test.c289 struct OsalThread *thread = (struct OsalThread *)OsalMemCalloc(sizeof(*thread)); in CanTestStartTestThread() local
291 ret = OsalThreadCreate(thread, (OsalThreadEntry)entry, (void *)handle); in CanTestStartTestThread()
293 OsalMemFree(thread); in CanTestStartTestThread()
294 HDF_LOGE("CanTestStartTestThread: create test thread fail, ret: %d!", ret); in CanTestStartTestThread()
299 (void)OsalThreadDestroy(thread); in CanTestStartTestThread()
300 OsalMemFree(thread); in CanTestStartTestThread()
308 ret = OsalThreadStart(thread, &threadCfg); in CanTestStartTestThread()
310 (void)OsalThreadDestroy(thread); in CanTestStartTestThread()
311 OsalMemFree(thread); in CanTestStartTestThread()
319 CanTestStopTestThread(struct OsalThread *thread) CanTestStopTestThread() argument
349 struct OsalThread *thread = NULL; CanTestMultiThreadReadSameHandle() local
362 struct OsalThread *thread = NULL; CanTestMultiThreadReadMultiHandle() local
379 struct OsalThread *thread = NULL; CanTestMultiThreadSendSameHandle() local
391 struct OsalThread *thread = NULL; CanTestMultiThreadSendMultiHandle() local
[all...]
/drivers/peripheral/input/ddk_service/src/emit_event_manager/
H A Dinject_thread.cpp41 thread_ = std::thread([this] {this->RunThread(this);}); in Start()
47 InjectThread *thread = reinterpret_cast<InjectThread *>(param); in RunThread() local
48 if (thread != nullptr) { in RunThread()
49 thread->InjectFunc(); in RunThread()
51 HDF_LOGE("%{public}s: thread is nullptr", __func__); in RunThread()
/drivers/peripheral/intelligent_voice/passthrough/engine/
H A Denroll_engine.cpp17 #include <thread>
43 std::thread([&, initEvent]() { callback_->OnIntellVoiceEvent(initEvent); }).detach(); in Init()
61 std::thread([&, commitEvent]() { callback_->OnIntellVoiceEvent(commitEvent); }).detach(); in SetParameter()
79 std::thread([&, startEvent]() { callback_->OnIntellVoiceEvent(startEvent); }).detach(); in Start()
H A Dwakeup_engine.cpp17 #include <thread>
58 std::thread([&, startEvent]() { callback_->OnIntellVoiceEvent(startEvent); }).detach(); in Start()
/drivers/hdf_core/framework/core/adapter/syscall/include/
H A Dhdf_syscall_adapter.h30 struct OsalThread thread; member
48 struct HdfDevListenerThread *thread; member
56 struct HdfDevListenerThread *thread; member
/drivers/peripheral/display/composer/vdi_base/include/
H A Dhdi_netlink_monitor.h19 #include <thread>
34 std::unique_ptr<std::thread> mThread;
H A Ddrm_vsync_worker.h20 #include <thread>
42 std::unique_ptr<std::thread> mThread;
/drivers/peripheral/display/hal/default_standard/src/display_device/core/
H A Dhdi_netlink_monitor.h18 #include <thread>
33 std::unique_ptr<std::thread> mThread;
/drivers/peripheral/display/hal/default_standard/src/display_device/drm/
H A Ddrm_vsync_worker.h20 #include <thread>
43 std::unique_ptr<std::thread> mThread;
/drivers/peripheral/display/hal/default_standard/src/display_device/vsync/
H A Dsorft_vsync.h19 #include <thread>
39 std::unique_ptr<std::thread> thread_;
/drivers/peripheral/input/ddk_service/include/emit_event_manager/
H A Dinject_thread.h22 #include <thread>
48 std::thread thread_;
/drivers/peripheral/camera/test/demo_3A/
H A Dstream_customer.h20 #include <thread>
75 std::thread* previewThreadId_ = nullptr;
/drivers/peripheral/camera/test/ut/v4l2/
H A Dstream_customer.h20 #include <thread>
76 std::thread* previewThreadId_ = nullptr;
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
H A Dhci_watcher.h25 #include <thread>
57 std::thread thread_;
/drivers/peripheral/camera/test/demo/
H A Dstream_customer.h20 #include <thread>
75 std::thread* previewThreadId_ = nullptr;

Completed in 19 milliseconds

123456