Home
last modified time | relevance | path

Searched refs:threadContext (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/communication/ipc/ipc/native/c/manager/src/
H A Dipc_thread_pool.c57 free(threadContext); in TlsDestructor()
78 if (threadContext == NULL) { in GetAndUpdateInvoker()
81 threadContext->proto = proto; in GetAndUpdateInvoker()
88 int32_t proto = threadContext->proto; in ThreadHandler()
90 free(threadContext); in ThreadHandler()
91 threadContext = NULL; in ThreadHandler()
160 if (threadContext == NULL) { in SpawnNewThread()
165 threadContext->proto = proto; in SpawnNewThread()
166 threadContext->policy = policy; in SpawnNewThread()
170 free(threadContext); in SpawnNewThread()
[all …]
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Dthread_context.cpp50 if (threadContext->ctx == nullptr) { in CreateContext()
61 if (threadContext->ctx != nullptr) { in ReleaseContext()
62 delete threadContext->ctx; in ReleaseContext()
63 threadContext->ctx = nullptr; in ReleaseContext()
73 threadContext->tid = tid; in GetContextLocked()
74 threadContext->frameSz = 0; in GetContextLocked()
75 CreateContext(threadContext); in GetContextLocked()
76 g_contextMap[tid] = threadContext; in GetContextLocked()
77 return threadContext; in GetContextLocked()
168 if (threadContext == nullptr) { in CollectThreadContext()
[all …]
H A Dunwinder.cpp534 auto threadContext = LocalThreadContext::GetInstance().CollectThreadContext(tid); in UnwindLocalWithTid() local
536 if (threadContext != nullptr && threadContext->frameSz > 0) { in UnwindLocalWithTid()
538 for (size_t i = 0; i < threadContext->frameSz; i++) { in UnwindLocalWithTid()
539 pcs_.emplace_back(threadContext->pcs[i]); in UnwindLocalWithTid()
541 firstFrameSp_ = threadContext->firstFrameSp; in UnwindLocalWithTid()
546 if (threadContext == nullptr || threadContext->ctx == nullptr) { in UnwindLocalWithTid()
552 regs_ = DfxRegs::CreateFromUcontext(*(threadContext->ctx)); in UnwindLocalWithTid()
554 regs_->SetFromUcontext(*(threadContext->ctx)); in UnwindLocalWithTid()
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/src/
H A Ddbinder_invoker.c68 if (threadContext == NULL) { in GetUniqueSeqNumber()
72 return threadContext->seqNumber; in GetUniqueSeqNumber()
337 return threadContext->sessionId; in GetCallerSessionId()
397 threadContext->sessionId = 0; in ProcessTransaction()
398 threadContext->seqNumber = 0; in ProcessTransaction()
401 threadContext->callerPid = oldPid; in ProcessTransaction()
402 threadContext->callerUid = oldUid; in ProcessTransaction()
745 if (threadContext == NULL) { in RpcJoinThread()
748 threadContext->stopWorkThread = false; in RpcJoinThread()
769 if (threadContext == NULL) { in RpcStopWorkThread()
[all …]
/ohos5.0/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_a/
H A Dipc_invoker.c291 const pid_t oldPid = threadContext->callerPid; in CallIpcCallback()
292 const pid_t oldUid = threadContext->callerUid; in CallIpcCallback()
293 threadContext->callerPid = ipcMsg->processID; in CallIpcCallback()
294 threadContext->callerUid = (pid_t)ipcMsg->userID; in CallIpcCallback()
311 threadContext->callerPid = oldPid; in CallIpcCallback()
312 threadContext->callerUid = oldUid; in CallIpcCallback()
493 const pid_t oldPid = threadContext->callerPid; in IpcJoinThreadLoop()
494 const pid_t oldUid = threadContext->callerUid; in IpcJoinThreadLoop()
495 threadContext->callerPid = ipcMsg->processID; in IpcJoinThreadLoop()
515 threadContext->callerPid = oldPid; in IpcJoinThreadLoop()
[all …]
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/
H A Dipc_proxy_inner.c202 ThreadContext *threadContext = GetCurrentThreadContext(); in UpdateProto() local
203 if (threadContext == NULL) { in UpdateProto()
209 threadContext->proto = IF_PROT_DATABUS; in UpdateProto()
212 threadContext->proto = GetSessionFromDBinderService(svc); in UpdateProto()
213 RPC_LOG_INFO("UpdateProto get proto: %d", threadContext->proto); 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() local
243 if (threadContext == NULL) { in UpdateProto()
249 threadContext->proto = IF_PROT_DATABUS; in UpdateProto()
252 threadContext->proto = GetSessionFromDBinderService(svc->handle); in UpdateProto()
253 RPC_LOG_INFO("UpdateProto get proto: %d", threadContext->proto); in UpdateProto()
/ohos5.0/foundation/communication/ipc/services/dbinder/c/src/
H A Ddbinder_stub.c67 ThreadContext *threadContext = GetCurrentThreadContext(); in ProcessProto() local
68 if (threadContext == NULL) { in ProcessProto()
73 SessionInfo *session = QuerySessionObject((uintptr_t)threadContext->objectStub); in ProcessProto()
/ohos5.0/foundation/communication/ipc/ipc/native/c/ipc/src/linux/
H A Dipc_invoker.c215 ThreadContext *threadContext = GetCurrentThreadContext(); in HandleTransaction() local
216 const pid_t oldPid = threadContext->callerPid; in HandleTransaction()
217 const pid_t oldUid = threadContext->callerUid; in HandleTransaction()
218 threadContext->callerPid = tr->sender_pid; in HandleTransaction()
219 threadContext->callerUid = (pid_t)tr->sender_euid; in HandleTransaction()
226 threadContext->objectStub = objectStub; in HandleTransaction()
243 threadContext->callerPid = oldPid; in HandleTransaction()
244 threadContext->callerUid = oldUid; in HandleTransaction()
/ohos5.0/foundation/communication/ipc/ipc/test/unittest/rpc/client/
H A DRpcClientTest.cpp301 ThreadContext *threadContext = GetCurrentThreadContext(); variable
302 ASSERT_TRUE(threadContext != NULL);
303 EXPECT_EQ(threadContext->proto, IF_PROT_DATABUS);