diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index 8ad1cf5..554a6a6 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -1142,9 +1142,10 @@ struct Timer { } } -/// private -struct TimerCallbackHandler(CALLABLE) { - static TimerCallbackHandler instance; +private struct TimerCallbackHandler(CALLABLE) { + static __gshared TimerCallbackHandler ms_instance; + static @property ref TimerCallbackHandler instance() @trusted nothrow { return ms_instance; } + void handle(TimerID timer, bool fired) @safe nothrow { if (fired) {