Mercurial > cpython-lru_cache-weakref
diff Python/thread_nt.h @ 13096:8c8de5b736dc legacy-trunk
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 28 Jun 2000 22:07:35 +0000 |
| parents | b91fdc29c5bd |
| children | 404156092f78 |
line wrap: on
line diff
--- a/Python/thread_nt.h Wed Jun 28 22:05:44 2000 +0000 +++ b/Python/thread_nt.h Wed Jun 28 22:07:35 2000 +0000 @@ -101,6 +101,9 @@ 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 @@ */ 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 @@ 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;
