summaryrefslogtreecommitdiff
path: root/src/lib/j2k_encoder_thread.h
blob: 4a4b25f37f64fdbefcc57d80cabc749abc4902d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef DCPOMATIC_J2K_ENCODER_THREAD
#define DCPOMATIC_J2K_ENCODER_THREAD


#include <boost/thread.hpp>


class J2KEncoder;


class J2KEncoderThread
{
public:
	J2KEncoderThread(J2KEncoder& encoder);

	J2KEncoderThread(J2KEncoderThread const&) = delete;
	J2KEncoderThread& operator=(J2KEncoderThread const&) = delete;

	void start();
	void stop();

	virtual void run() = 0;

protected:
	J2KEncoder& _encoder;

private:
	boost::thread _thread;
};


#endif