MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ ~Impl()

MayaFlux::Journal::Archivist::Impl::~Impl ( )
inline

Definition at line 25 of file Archivist.cpp.

26 {
27 m_worker_running.store(false, std::memory_order_release);
28
29 if (m_worker_thread.joinable()) {
30 auto start = std::chrono::steady_clock::now();
31 while (m_worker_thread.joinable() && std::chrono::steady_clock::now() - start < std::chrono::milliseconds(500)) {
32 std::this_thread::sleep_for(std::chrono::milliseconds(10));
33 }
34
35 if (m_worker_thread.joinable()) {
36 m_worker_thread.detach();
37 }
38 }
39 }
std::atomic< bool > m_worker_running

References m_worker_running, and m_worker_thread.