new dmd compat

This commit is contained in:
Adam D. Ruppe 2024-08-27 10:19:32 -04:00
parent cdeca0a686
commit 3cc5028486

View file

@ -1777,7 +1777,10 @@ final class AudioPcmOutThreadImplementation : Thread {
public void unsuspend() {
suspended_ = false;
suspendWanted = false;
event.set();
static if(__traits(hasMember, event, "setIfInitialized"))
event.setIfInitialized();
else
event.set();
}
/// ditto