src: refactor TimerWrap class
src: remove user_data from TimerWrap
There’s no point in having an opaque user data pointer when we’re
already using std::function
.
src: refactor TimerWrap lifetime management
Move the cleanup hook into the split
TimerWrap
, because it should
always be present when that class is being used, andStop(true)
and Stop(false)
into separate methods since the
actions performed by these are fully distinct.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines