mirror of https://github.com/adamdruppe/arsd.git
block signals in the pcm thread
This commit is contained in:
parent
10d65d0367
commit
83db97a467
|
@ -198,6 +198,17 @@ import core.thread;
|
|||
final class AudioPcmOutThread : Thread {
|
||||
///
|
||||
this() {
|
||||
version(linux) {
|
||||
// this thread has no business intercepting signals from the main thread,
|
||||
// so gonna block a couple of them
|
||||
import core.sys.posix.signal;
|
||||
sigset_t sigset;
|
||||
auto err = sigfillset(&sigset);
|
||||
assert(!err);
|
||||
err = sigprocmask(SIG_BLOCK, &sigset, null);
|
||||
assert(!err);
|
||||
}
|
||||
|
||||
super(&run);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue