diff --git a/source/vibe/core/concurrency.d b/source/vibe/core/concurrency.d index 05b4c42..28ab92e 100644 --- a/source/vibe/core/concurrency.d +++ b/source/vibe/core/concurrency.d @@ -153,7 +153,7 @@ struct ScopedLock(T) */ @property inout(T) unsafeGet() inout nothrow { return m_ref; } - inout(T) opDot() inout nothrow { return m_ref; } + alias unsafeGet this; //pragma(msg, "In ScopedLock!("~T.stringof~")"); //pragma(msg, isolatedRefMethods!T()); // mixin(isolatedAggregateMethodsString!T()); diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index d4caf36..41202e1 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -689,6 +689,7 @@ void hibernate(scope void delegate() @safe nothrow on_interrupt = null) */ void switchToTask(Task t) @safe nothrow { + import std.typecons : Yes, No; auto defer = TaskFiber.getThis().m_yieldLockCount > 0 ? Yes.defer : No.defer; s_scheduler.switchTo(t, defer); }