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

◆ ~Impl()

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

Definition at line 24 of file Archivist.cpp.

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

References m_worker_running, and m_worker_thread.