Commit b4ddf4b9 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Parser: Use atomic bool

parent 40e6e807
#ifndef PARSER_H
#define PARSER_H
#include <atomic>
#include <condition_variable>
#include <mutex>
#include <thread>
......@@ -43,7 +44,7 @@ class Parser : public IMetadataServiceCb
std::unique_ptr<std::thread> m_thread;
std::mutex m_lock;
std::condition_variable m_cond;
volatile bool m_stopParser;
std::atomic_bool m_stopParser;
};
#endif // PARSER_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment