mirror of
https://github.com/janet-lang/janet
synced 2025-07-06 03:52:54 +00:00
Always cancel thread on windows.
This commit is contained in:
parent
8ac4eec370
commit
f3ad13c2d4
@ -620,7 +620,7 @@ static void janet_timeout_stop(int sig_num) {
|
||||
static void handle_timeout_worker(JanetTimeout to, int cancel) {
|
||||
if (!to.has_worker) return;
|
||||
#ifdef JANET_WINDOWS
|
||||
if (cancel) QueueUserAPC(janet_timeout_stop, to.worker, 0);
|
||||
QueueUserAPC(janet_timeout_stop, to.worker, 0);
|
||||
WaitForSingleObject(to.worker, INFINITE);
|
||||
CloseHandle(to.worker);
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user