Rename host_guard_handler to host_watchdog_handler

To keep the terminology consistent.
This commit is contained in:
Robbert van der Helm
2021-05-01 15:20:50 +02:00
parent aeca37d795
commit 7881e0116e
+3 -3
View File
@@ -260,7 +260,7 @@ class PluginBridge {
// and throw when it is not. The alternative would be to rewrite this to // and throw when it is not. The alternative would be to rewrite this to
// using `async_accept`, Boost.Asio timers, and another IO context, but // using `async_accept`, Boost.Asio timers, and another IO context, but
// I feel like this a much simpler solution. // I feel like this a much simpler solution.
host_guard_handler = std::jthread([&](std::stop_token st) { host_watchdog_handler = std::jthread([&](std::stop_token st) {
using namespace std::literals::chrono_literals; using namespace std::literals::chrono_literals;
while (!st.stop_requested()) { while (!st.stop_requested()) {
@@ -278,7 +278,7 @@ class PluginBridge {
sockets.connect(); sockets.connect();
#ifndef WITH_WINEDBG #ifndef WITH_WINEDBG
host_guard_handler.request_stop(); host_watchdog_handler.request_stop();
#endif #endif
} }
@@ -350,5 +350,5 @@ class PluginBridge {
* detach the thread as it has to check whether the VST host is still * detach the thread as it has to check whether the VST host is still
* running. * running.
*/ */
std::jthread host_guard_handler; std::jthread host_watchdog_handler;
}; };