Files
Jungfraujoch/receiver/PreviewCounter.h
T

19 lines
396 B
C++

// Copyright (2019-2023) Paul Scherrer Institute
#ifndef JUNGFRAUJOCH_PREVIEWCOUNTER_H
#define JUNGFRAUJOCH_PREVIEWCOUNTER_H
#include <cstdint>
#include <mutex>
class PreviewCounter {
mutable std::mutex m;
int64_t stride;
int64_t last_part = -1;
public:
PreviewCounter(int64_t stride);
bool GeneratePreview(int64_t image_number);
};
#endif //JUNGFRAUJOCH_PREVIEWCOUNTER_H