diff options
| author | Martin Ridgers <[email protected]> | 2022-01-07 13:01:43 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2022-01-07 13:55:27 +0100 |
| commit | 4558d1f477830ce52054669ab8f33838f3c90c79 (patch) | |
| tree | 6f5418451d93d2dd230abaaf7f6ac0f5d7e857f7 /zenstore/gc.cpp | |
| parent | Missing override decoration (diff) | |
| download | zen-4558d1f477830ce52054669ab8f33838f3c90c79.tar.xz zen-4558d1f477830ce52054669ab8f33838f3c90c79.zip | |
Apple Clang does not implement std::jthread
Diffstat (limited to 'zenstore/gc.cpp')
| -rw-r--r-- | zenstore/gc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zenstore/gc.cpp b/zenstore/gc.cpp index d23e0c466..92942b09f 100644 --- a/zenstore/gc.cpp +++ b/zenstore/gc.cpp @@ -393,7 +393,7 @@ GcScheduler::Initialize(const GcSchedulerConfig& Config) } m_NextGcTime = NextGcTime(m_LastGcTime); - m_GcThread = std::jthread(&GcScheduler::SchedulerThread, this); + m_GcThread = std::thread(&GcScheduler::SchedulerThread, this); } void @@ -403,6 +403,8 @@ GcScheduler::Shutdown() { m_Status = static_cast<uint32_t>(GcSchedulerStatus::kStopped); m_GcSignal.notify_one(); + + m_GcThread.join(); } } |