Lines Matching refs:ctxPtr
191 auto ctxPtr = static_cast<ThreadContext *>(si->si_value.sival_ptr);
195 ctxPtr->firstFrameSp = reinterpret_cast<ucontext_t*>(context)->uc_mcontext.sp;
196 ctxPtr->frameSz = FpUnwinder::GetPtr()->UnwindSafe(pc, fp, ctxPtr->pcs, DEFAULT_MAX_LOCAL_FRAME_NUM);
197 ctxPtr->cv.notify_all();
198 ctxPtr->tid = static_cast<int32_t>(ThreadContextStatus::CONTEXT_UNUSED);
202 std::unique_lock<std::mutex> lock(ctxPtr->mtx);
203 if (ctxPtr->ctx == nullptr) {
204 ctxPtr->tid = static_cast<int32_t>(ThreadContextStatus::CONTEXT_UNUSED);
209 if (memcpy_s(&ctxPtr->ctx->uc_mcontext, sizeof(ucontext->uc_mcontext),
215 if (!GetSelfStackRange(ctxPtr->stackBottom, ctxPtr->stackTop)) {
220 ctxPtr->tid = static_cast<int32_t>(ThreadContextStatus::CONTEXT_READY);
221 ctxPtr->cv.notify_all();
222 ctxPtr->cv.wait_for(lock, g_timeOut);
223 ctxPtr->tid = static_cast<int32_t>(ThreadContextStatus::CONTEXT_UNUSED);
229 auto ctxPtr = LocalThreadContext::GetInstance().GetThreadContext(tid);
230 if (ctxPtr == nullptr) {
233 stackBottom = ctxPtr->stackBottom;
234 stackTop = ctxPtr->stackTop;