juce thread stop thread overridable code example Example: juce sleep Time::waitForMillisecondCounter(Time::getMillisecondCounter() + 1000);