Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions iaa.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class IAAJob {
}
}

// Prevent copying a job
IAAJob(const IAAJob&) = delete;
IAAJob& operator=(const IAAJob&) = delete;

qpl_job* GetJob(qpl_path_t execution_path) {
if (jobs_[execution_path] == nullptr) {
InitJob(execution_path);
Expand Down
5 changes: 5 additions & 0 deletions qat.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ class QATJob {
public:
QATJob() {}
~QATJob() { Close(); }

// Prevent copying a job
QATJob(const QATJob&) = delete;
QATJob& operator=(const QATJob&) = delete;

QzSession_T* GetQATSession(int window_bits, bool gzip_ext);
void CloseQATSession(int window_bits, bool gzip_ext);

Expand Down