diff Python/thread_nt.h @ 4371:c277ee8c669c legacy-trunk

Sjoerd's thread changes (including down_sema typo fix). Note: waitflag not supported on NT.
author Guido van Rossum <guido@python.org>
date Tue, 08 Oct 1996 14:17:53 +0000
parents 1a52351a00b2
children 65d2d8e67da3
line wrap: on
line diff
--- a/Python/thread_nt.h	Tue Oct 08 14:15:25 1996 +0000
+++ b/Python/thread_nt.h	Tue Oct 08 14:17:53 1996 +0000
@@ -223,7 +223,10 @@
 	CloseHandle((HANDLE) aSemaphore);
 }
 
-void down_sema(type_sema aSemaphore)
+/*
+  XXX must do something about waitflag
+ */
+int down_sema(type_sema aSemaphore, int waitflag)
 {
 	DWORD waitResult;
 
@@ -232,6 +235,7 @@
 	waitResult = WaitForSingleObject( (HANDLE) aSemaphore, INFINITE);
 
 	dprintf(("%ld: down_sema(%lx) return: %l\n", get_thread_ident(),(long) aSemaphore, waitResult));
+	return 0;
 }
 
 void up_sema(type_sema aSemaphore)