Home
last modified time | relevance | path

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

/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/
Dbacktrace_local_thread.cpp95 auto threadContext = BacktraceLocalContext::GetInstance().GetThreadContext(tid_); in Unwind() local
96 if (threadContext == nullptr) { in Unwind()
100 if (threadContext->ctx == nullptr) { in Unwind()
108 ret = unwinder.UnwindWithContext(as, *(threadContext->ctx), symbol, skipFrameNum); in Unwind()
Dbacktrace_local_context.cpp44 auto threadContext = std::make_shared<ThreadContext>(); in CreateContext() local
45 threadContext->tid = tid; in CreateContext()
46 threadContext->ctx = new unw_context_t; in CreateContext()
47 (void)memset_s(threadContext->ctx, sizeof(unw_context_t), 0, sizeof(unw_context_t)); in CreateContext()
48 return threadContext; in CreateContext()
55 auto threadContext = CreateContext(tid); in GetContextLocked() local
56 g_contextMap[tid] = threadContext; in GetContextLocked()
57 return threadContext; in GetContextLocked()