Remove unused function safeYield

This commit is contained in:
Hiroki Noda 2019-09-26 20:33:05 +09:00
parent 782fc40152
commit 4aa6420662

View file

@ -405,11 +405,6 @@ log("ready event");
private auto safeAtomicLoad(T)(ref shared(T) v) @trusted { return atomicLoad(v); }
private auto safeAtomicStore(T)(ref shared(T) v, T a) @trusted { return atomicStore(v, a); }
private auto safeCAS(T, U, V)(ref shared(T) v, U a, V b) @trusted { return cas(&v, a, b); }
private void safeYield() @trusted nothrow {
import core.thread : Thread;
import core.time : seconds;
Thread.sleep(0.seconds);
}
private void log(ARGS...)(string fmt, ARGS args)
@trusted nothrow {