mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-09 17:36:29 -04:00
29 lines
461 B
C++
29 lines
461 B
C++
#ifndef ZM_DECODER_THREAD_H
|
|
#define ZM_DECODER_THREAD_H
|
|
|
|
#include <atomic>
|
|
#include <memory>
|
|
#include <thread>
|
|
|
|
class Monitor;
|
|
|
|
class DecoderThread {
|
|
public:
|
|
explicit DecoderThread(Monitor *monitor);
|
|
~DecoderThread();
|
|
DecoderThread(DecoderThread &rhs) = delete;
|
|
DecoderThread(DecoderThread &&rhs) = delete;
|
|
|
|
void Start();
|
|
void Stop();
|
|
|
|
private:
|
|
void Run();
|
|
|
|
Monitor *monitor_;
|
|
std::atomic<bool> terminate_;
|
|
std::thread thread_;
|
|
};
|
|
|
|
#endif
|