summaryrefslogtreecommitdiff
path: root/Python/condvar.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-09 23:51:54 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-09 23:51:54 +0200
commit16fad0ce0d06f5e11b46f37eadbb060256b90540 (patch)
tree33dd5bc188824aa8ae498a3351dd330ee2c85bb8 /Python/condvar.h
parentc823f3ffde59b90df6ef240ece057d4da20e580e (diff)
parent27c856cc1a76a2448283d4a98fa74a268a097c59 (diff)
downloadcpython-16fad0ce0d06f5e11b46f37eadbb060256b90540.tar.gz
Issue #28649: Clear the typing module caches when search for reference leaks.
Diffstat (limited to 'Python/condvar.h')
-rw-r--r--Python/condvar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/condvar.h b/Python/condvar.h
index ced910fbea..9a71b17738 100644
--- a/Python/condvar.h
+++ b/Python/condvar.h
@@ -89,7 +89,7 @@ do { /* TODO: add overflow and truncation checks */ \
/* return 0 for success, 1 on timeout, -1 on error */
Py_LOCAL_INLINE(int)
-PyCOND_TIMEDWAIT(PyCOND_T *cond, PyMUTEX_T *mut, PY_LONG_LONG us)
+PyCOND_TIMEDWAIT(PyCOND_T *cond, PyMUTEX_T *mut, long long us)
{
int r;
struct timespec ts;
@@ -270,7 +270,7 @@ PyCOND_WAIT(PyCOND_T *cv, PyMUTEX_T *cs)
}
Py_LOCAL_INLINE(int)
-PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, PY_LONG_LONG us)
+PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, long long us)
{
return _PyCOND_WAIT_MS(cv, cs, (DWORD)(us/1000));
}
@@ -363,7 +363,7 @@ PyCOND_WAIT(PyCOND_T *cv, PyMUTEX_T *cs)
* 2 to indicate that we don't know.
*/
Py_LOCAL_INLINE(int)
-PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, PY_LONG_LONG us)
+PyCOND_TIMEDWAIT(PyCOND_T *cv, PyMUTEX_T *cs, long long us)
{
return SleepConditionVariableSRW(cv, cs, (DWORD)(us/1000), 0) ? 2 : -1;
}