summaryrefslogtreecommitdiffstats
path: root/Python/thread_nt.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-06-28 22:07:35 (GMT)
committerGuido van Rossum <guido@python.org>2000-06-28 22:07:35 (GMT)
commit582acece2e0db447904b3f8f8f1d2acf36834158 (patch)
tree80805422d52a32da77e5e93425c34ec48d76a9c6 /Python/thread_nt.h
parent6f2a5efec98c831bd529dfb341c2f83ff0914418 (diff)
downloadcpython-582acece2e0db447904b3f8f8f1d2acf36834158.zip
cpython-582acece2e0db447904b3f8f8f1d2acf36834158.tar.gz
cpython-582acece2e0db447904b3f8f8f1d2acf36834158.tar.bz2
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
Diffstat (limited to 'Python/thread_nt.h')
-rw-r--r--Python/thread_nt.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/thread_nt.h b/Python/thread_nt.h
index c8ed6cd..9e82a94 100644
--- a/Python/thread_nt.h
+++ b/Python/thread_nt.h
@@ -101,6 +101,9 @@ BOOL InitializeNonRecursiveMutex(PNRMUTEX mutex)
return mutex->hevent != NULL ; /* TRUE if the mutex is created */
}
+#ifdef InterlockedCompareExchange
+#undef InterlockedCompareExchange
+#endif
#define InterlockedCompareExchange(dest,exchange,comperand) (ixchg((dest), (exchange), (comperand)))
VOID DeleteNonRecursiveMutex(PNRMUTEX mutex)
@@ -179,7 +182,7 @@ static void PyThread__init_thread(void)
*/
int PyThread_start_new_thread(void (*func)(void *), void *arg)
{
- long rv;
+ INT_PTR rv;
int success = 0;
dprintf(("%ld: PyThread_start_new_thread called\n", PyThread_get_thread_ident()));
@@ -190,7 +193,7 @@ int PyThread_start_new_thread(void (*func)(void *), void *arg)
if (rv != -1) {
success = 1;
- dprintf(("%ld: PyThread_start_new_thread succeeded: %ld\n", PyThread_get_thread_ident(), rv));
+ dprintf(("%ld: PyThread_start_new_thread succeeded: %p\n", PyThread_get_thread_ident(), rv));
}
return success;