From 1a87ee5b3f2c56ca92f459c3e60fb1a0d5709611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 22 Jan 2019 10:46:35 +0100 Subject: [PATCH] Make yieldLock() safe and nothrow. --- source/vibe/core/core.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);