Mutex protect the envelope when manipulating the amount of nodes from the GUI. Should probably redesign this stuff a bit...Init envelope reset nodes.

This commit is contained in:
xenakios
2018-02-27 15:21:36 +02:00
parent 195a630060
commit 51049e4ae1
5 changed files with 15 additions and 7 deletions

View File

@ -32,7 +32,7 @@ class EnvelopeComponent : public Component,
//public TooltipClient
{
public:
EnvelopeComponent();
EnvelopeComponent(CriticalSection* cs);
~EnvelopeComponent();
void paint(Graphics& g) override;
void set_envelope(std::shared_ptr<breakpoint_envelope> env, String name = String());
@ -72,5 +72,6 @@ private:
String m_last_tip;
BubbleMessageComponent m_bubble;
void show_bubble(int x, int y, const envelope_node &node);
CriticalSection* m_cs = nullptr;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(EnvelopeComponent)
};