Home
last modified time | relevance | path

Searched refs:ThreadContext (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/communication/ipc/ipc/native/c/manager/src/
H A Dipc_thread_pool.c33 ThreadContext *GetCurrentThreadContext(void) in GetCurrentThreadContext()
35 ThreadContext *current = NULL; in GetCurrentThreadContext()
38 current = (ThreadContext *)curTLS; in GetCurrentThreadContext()
40 current = (ThreadContext *)calloc(1, sizeof(ThreadContext)); in GetCurrentThreadContext()
55 ThreadContext *threadContext = (ThreadContext *)args; in TlsDestructor()
77 ThreadContext *threadContext = GetCurrentThreadContext(); in GetAndUpdateInvoker()
87 ThreadContext *threadContext = (ThreadContext *)args; in ThreadHandler()
159 ThreadContext *threadContext = (ThreadContext *)calloc(1, sizeof(ThreadContext)); in SpawnNewThread()
206 ThreadContext *threadContext = GetCurrentThreadContext(); in GetRemoteInvoker()
H A Dipc_process_skeleton.c137 ThreadContext *currentContext = GetCurrentThreadContext(); in ProcessGetCallingPid()
148 ThreadContext *currentContext = GetCurrentThreadContext(); in ProcessGetCallingUid()
/ohos5.0/base/startup/appspawn/test/moduletest/
H A Dappspawn_test_cmder.h33 } ThreadContext; typedef
37 class AppSpawnTestCommander : public ThreadContext {
92 static AppSpawnTestCommander *ConvertTo(const ThreadContext *context) in ConvertTo()
96 static void TaskExecutorProc(ThreadTaskHandle handle, const ThreadContext *context);
97 static void SendTaskFinish(ThreadTaskHandle handle, const ThreadContext *context);
98 static void InputThread(ThreadTaskHandle handle, const ThreadContext *context);
99 static void DumpThread(ThreadTaskHandle handle, const ThreadContext *context);
H A Dappspawn_test_cmder.cpp449 …dMgrAddExecutor(threadMgr_, taskHandle, TaskExecutorProc, reinterpret_cast<ThreadContext *>(this)); in StartSendMsg()
456 void AppSpawnTestCommander::TaskExecutorProc(ThreadTaskHandle handle, const ThreadContext *context) in TaskExecutorProc()
462 void AppSpawnTestCommander::SendTaskFinish(ThreadTaskHandle handle, const ThreadContext *context) in SendTaskFinish()
491 void AppSpawnTestCommander::InputThread(ThreadTaskHandle handle, const ThreadContext *context) in InputThread()
525 void AppSpawnTestCommander::DumpThread(ThreadTaskHandle handle, const ThreadContext *context) in DumpThread()
/ohos5.0/base/startup/appspawn/test/moduletest/threadpool/
H A Dthread_manager.h30 typedef struct TagThreadContext ThreadContext; typedef
32 typedef void (*TaskFinishProcessor)(ThreadTaskHandle handle, const ThreadContext *context);
33 typedef void (*TaskExecutor)(ThreadTaskHandle handle, const ThreadContext *context);
39 ThreadTaskHandle taskHandle, TaskExecutor executor, const ThreadContext *context);
43 ThreadTaskHandle taskHandle, TaskFinishProcessor process, const ThreadContext *context);
H A Dthread_manager.c52 const ThreadContext *context;
62 const ThreadContext *context;
365 ThreadTaskHandle taskHandle, TaskExecutor executor, const ThreadContext *context) in ThreadMgrAddExecutor()
438 ThreadTaskHandle taskHandle, TaskFinishProcessor process, const ThreadContext *context) in TaskExecute()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Dthread_context.h36 struct ThreadContext { struct
56 ~ThreadContext() in ~ThreadContext() argument
71 std::shared_ptr<ThreadContext> CollectThreadContext(int32_t tid);
72 std::shared_ptr<ThreadContext> GetThreadContext(int32_t tid);
81 bool SignalRequestThread(int32_t tid, ThreadContext* ctx);
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Dthread_context.cpp43 std::map<int32_t, std::shared_ptr<ThreadContext>> g_contextMap {};
46 void CreateContext(std::shared_ptr<ThreadContext>& threadContext) in CreateContext()
57 void ReleaseContext(std::shared_ptr<ThreadContext> threadContext) in ReleaseContext()
68 std::shared_ptr<ThreadContext> GetContextLocked(int32_t tid) in GetContextLocked()
72 auto threadContext = std::make_shared<ThreadContext>(); in GetContextLocked()
137 NO_SANITIZE std::shared_ptr<ThreadContext> LocalThreadContext::GetThreadContext(int32_t tid) in GetThreadContext()
164 std::shared_ptr<ThreadContext> LocalThreadContext::CollectThreadContext(int32_t tid) in CollectThreadContext()
191 auto ctxPtr = static_cast<ThreadContext *>(si->si_value.sival_ptr); in CopyContextAndWaitTimeout()
254 bool LocalThreadContext::SignalRequestThread(int32_t tid, ThreadContext* threadContext) in SignalRequestThread()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/threading/
H A Dtask_queue_factory.cpp140 : threadCount_(threadCount), threads_(make_unique<ThreadContext[]>(threadCount)) in ThreadPool()
145 auto threads = array_view<ThreadContext>(threads_.get(), threadCount_); in ThreadPool()
146 for (ThreadContext& context : threads) { in ThreadPool()
282 struct ThreadContext { struct in __anondcf869ec0110::ThreadPool
338 void ThreadProc(ThreadContext& context) in ThreadProc()
383 unique_ptr<ThreadContext[]> threads_;
/ohos5.0/foundation/communication/ipc/ipc/native/c/manager/include/
H A Dipc_thread_pool.h48 } ThreadContext; typedef
63 ThreadContext *GetCurrentThreadContext(void);
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/src/
H A Ddbinder_invoker.c67 ThreadContext *threadContext = GetCurrentThreadContext(); in GetUniqueSeqNumber()
336 ThreadContext *threadContext = GetCurrentThreadContext(); in GetCallerSessionId()
374 ThreadContext *threadContext = GetCurrentThreadContext(); in ProcessTransaction()
744 ThreadContext *threadContext = GetCurrentThreadContext(); in RpcJoinThread()
768 ThreadContext *threadContext = GetCurrentThreadContext(); in RpcStopWorkThread()
/ohos5.0/foundation/communication/ipc/services/dbinder/c/src/
H A Ddbinder_stub.c67 ThreadContext *threadContext = GetCurrentThreadContext(); in ProcessProto()
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/
H A Dipc_proxy_inner.c202 ThreadContext *threadContext = GetCurrentThreadContext(); in UpdateProto()
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/small/
H A Dipc_proxy_inner.c242 ThreadContext *threadContext = GetCurrentThreadContext(); in UpdateProto()
/ohos5.0/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_a/
H A Dipc_invoker.c290 ThreadContext *threadContext = GetCurrentThreadContext(); in CallIpcCallback()
492 ThreadContext *threadContext = GetCurrentThreadContext(); in IpcJoinThreadLoop()
/ohos5.0/foundation/communication/ipc/ipc/test/unittest/rpc/client/
H A DRpcClientTest.cpp301 ThreadContext *threadContext = GetCurrentThreadContext();
/ohos5.0/foundation/communication/ipc/ipc/native/c/ipc/src/linux/
H A Dipc_invoker.c215 ThreadContext *threadContext = GetCurrentThreadContext(); in HandleTransaction()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Ddwarf_test.cpp1211 std::shared_ptr<ThreadContext> ret = instance.GetThreadContext(-1);