21 #include <base/source/timer.h> 54 static std::unique_ptr<AutoReleaseTimer>
create(Steinberg::ITimerCallback* iCallback,
55 Steinberg::uint32 iIntervalMilliseconds)
57 return std::make_unique<AutoReleaseTimer>(Steinberg::Timer::create(iCallback, iIntervalMilliseconds));
Simple wrapper class around Steinberg::Timer which will automatically release the timer on delete.
Definition: Timer.h:29
~AutoReleaseTimer()
Definition: Timer.h:36
void stop()
Definition: Timer.h:45
static std::unique_ptr< AutoReleaseTimer > create(Steinberg::ITimerCallback *iCallback, Steinberg::uint32 iIntervalMilliseconds)
Creates and return an auto release timer.
Definition: Timer.h:54
AutoReleaseTimer(Steinberg::Timer *iTimer)
Definition: Timer.h:33
AutoReleaseTimer & operator=(AutoReleaseTimer const &)=delete
Steinberg::Timer * fTimer
Definition: Timer.h:65