Browse Source

noyield

master
eta 2 years ago
parent
commit
fd536240cf
  1. 1
      Cargo.toml
  2. 1
      src/main.rs

1
Cargo.toml

@ -16,3 +16,4 @@ samplerate = { version = "0.2", optional = true } @@ -16,3 +16,4 @@ samplerate = { version = "0.2", optional = true }
stdin = []
jack = ["sqa-jack", "samplerate"]
tcp = []
noyield = []

1
src/main.rs

@ -234,6 +234,7 @@ fn audio_thread(udp: UdpSocket, dest: SocketAddr, queue: Consumer<u8>, fc: Arc<A @@ -234,6 +234,7 @@ fn audio_thread(udp: UdpSocket, dest: SocketAddr, queue: Consumer<u8>, fc: Arc<A
eprintln!("! wakeup delayed {}ns", ldiff);
ldiff = 0;
}
#[cfg(not(feature = "noyield"))]
::std::thread::yield_now();
}
}

Loading…
Cancel
Save