diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index 8419914..5357f51 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -1118,8 +1118,10 @@ struct TimerCallbackHandler { Multiple yield locks can appear in nested scopes. */ auto yieldLock() -{ +@safe nothrow { static struct YieldLock { + @safe nothrow: + private this(bool) { inc(); } @disable this(); @disable this(this);