osci-render/Source/parser/FrameProducer.h

17 wiersze
376 B
C++

#pragma once
#include <JuceHeader.h>
#include "FileParser.h"
#include "FrameConsumer.h"
class FrameProducer : public juce::Thread {
public:
FrameProducer(FrameConsumer&, std::shared_ptr<FileParser>);
~FrameProducer() override;
void run() override;
private:
juce::SpinLock lock;
FrameConsumer& frameConsumer;
std::shared_ptr<FileParser> frameSource;
};