Merge pull request #129 from kubo39/remove-unused-safeYield-function

Remove unused function `safeYield`
This commit is contained in:
Sönke Ludwig 2019-09-26 19:12:26 +02:00 committed by GitHub
commit f38a8cdb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -405,11 +405,6 @@ log("ready event");
private auto safeAtomicLoad(T)(ref shared(T) v) @trusted { return atomicLoad(v); } 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 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 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) private void log(ARGS...)(string fmt, ARGS args)
@trusted nothrow { @trusted nothrow {