From 813e401e7cb9863dfede73fde2997562171ce343 Mon Sep 17 00:00:00 2001 From: oh_ci Date: Thu, 21 Aug 2025 11:02:56 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!2054=20?= =?UTF-8?q?:=20adjust=20notify=20timeout'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../innerkits/unwinder/src/unwind_local/thread_context.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/interfaces/innerkits/unwinder/src/unwind_local/thread_context.cpp b/interfaces/innerkits/unwinder/src/unwind_local/thread_context.cpp index 4cac648ec..7895fa4f5 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 } -- Gitee