From 6177a3c6b5a05ac2c64978ccf3ca11de9793505b Mon Sep 17 00:00:00 2001 From: Benoit Germain <benoit.germain@ubisoft.com> Date: Thu, 13 Jun 2024 12:18:27 +0200 Subject: A small step toward making clang happy --- src/lane.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lane.h') diff --git a/src/lane.h b/src/lane.h index eb70153..836b1b3 100644 --- a/src/lane.h +++ b/src/lane.h @@ -69,8 +69,12 @@ class Lane // the thread std::jthread thread; +#ifndef __PROSPERO__ // a latch to wait for the lua_State to be ready std::latch ready{ 1 }; +#else // __PROSPERO__ + std::atomic_flag ready{}; +#endif // __PROSPERO__ // to wait for stop requests through thread's stop_source std::mutex doneMutex; std::condition_variable doneCondVar; // use condition_variable_any if waiting for a stop_token -- cgit v1.2.3-55-g6feb