JUCE
|
Used by the TimeSliceThread class. More...
Public Member Functions | |
virtual | ~TimeSliceClient ()=default |
Destructor. More... | |
virtual int | useTimeSlice ()=0 |
Called back by a TimeSliceThread. More... | |
Used by the TimeSliceThread class.
To register your class with a TimeSliceThread, derive from this class and use the TimeSliceThread::addTimeSliceClient() method to add it to the list.
Make sure you always call TimeSliceThread::removeTimeSliceClient() before deleting your client!
|
virtualdefault |
Destructor.
|
pure virtual |
Called back by a TimeSliceThread.
When you register this class with it, a TimeSliceThread will repeatedly call this method.
The implementation of this method should use its time-slice to do something that's quick - never block for longer than absolutely necessary.
Referenced by BufferingAudioSource::isLooping().