71 std::weak_ptr<SLLooper> mLooper;
72 std::atomic<bool> mCancelled{
false};
73 mutable std::atomic<bool> mMoved{
false};
221 void restart(uint64_t delay_ms);
244 void moveFrom(
Timer&& other)
noexcept;
Central event loop coordinator providing asynchronous task execution and timer management.
RAII timer wrapper with boost-style API and move semantics.
bool isActive() const
Check if timer is currently active.
void restart(uint64_t delay_ms)
Restart timer with new delay (one-shot timers only)
Timer(const Timer &)=delete
Copy constructor - deleted (move-only semantics)
void cancel()
Cancel the timer.
TimerId getId() const
Get unique timer identifier.
Timer & operator=(const Timer &)=delete
Copy assignment - deleted (move-only semantics)
~Timer()
Destructor - automatic timer cleanup.
Software Timer namespace containing all timer-related classes.
uint64_t TimerId
Unique identifier type for timer instances.