From 5d28389cacf1ba4e1fcbc32af85589f98e6b99de Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Sun, 11 Aug 2024 10:23:55 +0800 Subject: [PATCH] feat add volatile --- tile/base/thread/cond_var_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tile/base/thread/cond_var_test.cc b/tile/base/thread/cond_var_test.cc index b489c58..033182c 100644 --- a/tile/base/thread/cond_var_test.cc +++ b/tile/base/thread/cond_var_test.cc @@ -30,8 +30,8 @@ class CondVarTest : public ::testing::Test { protected: Mutex *m; CondVar *cv; - bool is_set; - bool is_timeout; + volatile bool is_set; + volatile bool is_timeout; std::thread *worker; };