feat add volatile
Some checks failed
ci/push/linux-aarch64-gcc/1 Pipeline was successful
ci/pr/linux-aarch64-gcc/1 Pipeline failed
ci/push/linux-x64-gcc/1 Pipeline was successful
ci/pr/linux-x64-gcc/1 Pipeline was successful
ci/push/linux-x64-gcc/2 Pipeline failed
ci/push/linux-aarch64-gcc/2 Pipeline failed
ci/pr/linux-aarch64-gcc/2 Pipeline failed
ci/pr/linux-x64-gcc/2 Pipeline failed

This commit is contained in:
tqcq 2024-08-11 10:23:55 +08:00
parent 398442037e
commit 5d28389cac

View File

@ -30,8 +30,8 @@ class CondVarTest : public ::testing::Test {
protected: protected:
Mutex *m; Mutex *m;
CondVar *cv; CondVar *cv;
bool is_set; volatile bool is_set;
bool is_timeout; volatile bool is_timeout;
std::thread *worker; std::thread *worker;
}; };