diff --git a/interfaces/innerkits/unwinder/src/unwind_local/thread_context.cpp b/interfaces/innerkits/unwinder/src/unwind_local/thread_context.cpp index 4cac648ecdfed66f3c0ebabe07329a126c7bfcc2..7895fa4f5e6f7ea608fef6cb5470f80a304190bd 100644 --- a/interfaces/innerkits/unwinder/src/unwind_local/thread_context.cpp +++ b/interfaces/innerkits/unwinder/src/unwind_local/thread_context.cpp @@ -50,7 +50,6 @@ namespace { std::mutex g_localMutex; std::map> g_contextMap {}; constexpr std::chrono::seconds TIME_OUT = std::chrono::seconds(1); -constexpr std::chrono::seconds TIME_OUT_IN_COPY_CONTEXT = std::chrono::seconds(3); void CreateContext(std::shared_ptr& threadContext) { @@ -176,7 +175,7 @@ NO_SANITIZE void CopyContextAndWaitTimeout(int sig, siginfo_t *si, void *context ctxPtr->tid = static_cast(ThreadContextStatus::CONTEXT_READY); ctxPtr->cv.notify_all(); - ctxPtr->cv.wait_for(lock, TIME_OUT_IN_COPY_CONTEXT); + ctxPtr->cv.wait_for(lock, TIME_OUT); ctxPtr->tid = static_cast(ThreadContextStatus::CONTEXT_UNUSED); #endif }