aboutsummaryrefslogtreecommitdiff
path: root/c/data.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-28 00:09:09 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-28 00:09:09 +0200
commit90c253dcfeb16a5972f913449422e3b5eabd92b8 (patch)
tree5451c394796654e970c7d7093e973f2c3e8ac18e /c/data.cpp
parentfa9aa6a4418c77ac2a7c03cc73cfecc6caddb4ad (diff)
downloadEpisodeBrowser-90c253dcfeb16a5972f913449422e3b5eabd92b8.tar.gz
Set termination handler for fetch thread.
MSVC has separate handlers per thread.
Diffstat (limited to 'c/data.cpp')
-rw-r--r--c/data.cpp1
1 files changed, 1 insertions, 0 deletions
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;