forked from UrbanLienert/blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJuceThread.hpp
More file actions
35 lines (27 loc) · 737 Bytes
/
JuceThread.hpp
File metadata and controls
35 lines (27 loc) · 737 Bytes
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
33
34
35
//
// JuceThread.hpp
// Blocks
//
// Created by Urban Lienert on 23.02.20.
// Copyright © 2020 Urban Lienert. All rights reserved.
//
#include <BlocksHeader.h>
#include "BlockFinder.hpp"
#include "m_pd.h"
class JuceThread : private juce::Thread
{
public:
JuceThread (const juce::String &threadName, t_outlet *a, t_outlet *b, t_outlet *c, t_outlet *d, bool loadDefaultProgram, size_t threadStackSize=0);
~JuceThread();
void startThread();
bool stopThread (int timeOutMilliseconds);
void run() override;
t_outlet *out_A;
t_outlet *out_B;
t_outlet *out_C;
t_outlet *out_D;
bool loadProgram;
std::unique_ptr<BlockFinder> mBlockFinder;
bool blockReady;
private:
};