aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-06-29 22:57:21 +0200
committerArmin Rigo <arigo@tunes.org>2020-06-29 22:57:21 +0200
commit6a2942fa4d84ccaad5f7dd0e987cdcfe5eaf947a (patch)
tree7d4016b57c02ed489cd6204f699e9bb15ca144ed /rpython/translator
parentTrying to check errors in the locking functions on Windows (diff)
downloadpypy-6a2942fa4d84ccaad5f7dd0e987cdcfe5eaf947a.tar.gz
pypy-6a2942fa4d84ccaad5f7dd0e987cdcfe5eaf947a.tar.bz2
pypy-6a2942fa4d84ccaad5f7dd0e987cdcfe5eaf947a.zip
fix
Diffstat (limited to 'rpython/translator')
-rw-r--r--rpython/translator/c/src/thread_nt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpython/translator/c/src/thread_nt.c b/rpython/translator/c/src/thread_nt.c
index 0fe3c22eab..148260d46f 100644
--- a/rpython/translator/c/src/thread_nt.c
+++ b/rpython/translator/c/src/thread_nt.c
@@ -42,7 +42,7 @@ bootstrap(void *call)
obj->id = GetCurrentThreadId();
if (!ReleaseSemaphore(obj->done, 1, NULL))
- gil_error("bootstrap ReleaseSemaphore", 0);
+ gil_fatal("bootstrap ReleaseSemaphore", 0);
func(arg);
}
@@ -136,7 +136,7 @@ DWORD EnterNonRecursiveMutex(PNRMUTEX mutex, RPY_TIMEOUT_T milliseconds)
if (milliseconds < 0) {
res = WaitForSingleObject(mutex->sem, INFINITE);
if (res != WAIT_OBJECT_0)
- gil_error("EnterNonRecursiveMutex(INFINITE)", res);
+ gil_fatal("EnterNonRecursiveMutex(INFINITE)", res);
return res;
}
@@ -144,14 +144,14 @@ DWORD EnterNonRecursiveMutex(PNRMUTEX mutex, RPY_TIMEOUT_T milliseconds)
res = WaitForSingleObject(mutex->sem, INFINITE - 1);
if (res != WAIT_TIMEOUT) {
if (res != WAIT_OBJECT_0)
- gil_error("EnterNonRecursiveMutex(INFINITE - 1)", res);
+ gil_fatal("EnterNonRecursiveMutex(INFINITE - 1)", res);
return res;
}
milliseconds -= (RPY_TIMEOUT_T)(INFINITE - 1);
}
res = WaitForSingleObject(mutex->sem, (DWORD)milliseconds);
if (res != WAIT_TIMEOUT && res != WAIT_OBJECT_0)
- gil_error("EnterNonRecursiveMutex(ms)", res);
+ gil_fatal("EnterNonRecursiveMutex(ms)", res);
return res;
}