summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-03-08 22:17:00 +0100
committerMax Kellermann <max@musicpd.org>2021-03-08 22:17:45 +0100
commit79397db5b4edc20ea4bc6e7b035ff79a245ee6b7 (patch)
treec68a9827666f778fbdd3273d4e33c80682530043
parent9256190a9b8fb36b69bd6c73315bf09a10363204 (diff)
output/wasapi: remove the "thrown" field
It is pointless to let WasapiOutputThread wait for the CheckException() call.
-rw-r--r--src/output/plugins/wasapi/WasapiOutputPlugin.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
index 922604bef..37ec0cfd6 100644
--- a/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
+++ b/src/output/plugins/wasapi/WasapiOutputPlugin.cxx
@@ -173,7 +173,6 @@ class WasapiOutputThread : public Thread {
alignas(BOOST_LOCKFREE_CACHELINE_BYTES) struct {
std::atomic_bool occur = false;
std::exception_ptr ptr = nullptr;
- WinEvent thrown;
} error;
boost::lockfree::spsc_queue<BYTE> spsc_buffer;
@@ -197,7 +196,6 @@ public:
void CheckException() {
if (error.occur.load()) {
auto err = std::exchange(error.ptr, nullptr);
- error.thrown.Set();
std::rethrow_exception(err);
}
}
@@ -371,7 +369,6 @@ try {
} catch (...) {
error.ptr = std::current_exception();
error.occur.store(true);
- error.thrown.Wait();
}
AudioOutput *