Class sh::scripting::api::ApiTimer

class sh::scripting::api::ApiTimer : public std::enable_shared_from_this<ApiTimer>

Public Functions

ApiTimer()
void start(int interval)
void stop()

Public Members

std::function<void()> _run

Private Members

QMutex _mutex
QTimer _timer
bool _isexecuting = false
QList<std::shared_ptr<ApiTimer>> _runningTimers