From 90c253dcfeb16a5972f913449422e3b5eabd92b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 28 Aug 2022 00:09:09 +0200 Subject: Set termination handler for fetch thread. MSVC has separate handlers per thread. --- c/data.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'c/data.cpp') diff --git a/c/data.cpp b/c/data.cpp index b717c4e..7df8bda 100644 --- a/c/data.cpp +++ b/c/data.cpp @@ -128,6 +128,7 @@ void WaitFor(void (*f)(unsigned char*)) static auto procThread = [](void (*f)(unsigned char*)) noexcept -> void { + SET_TERMINATE; while (!(sig & READY)) Sleep(100); sig = 0; -- cgit v1.2.3