Sjoerd's thread changes (including down_sema typo fix).
Note: waitflag not supported on NT.
diff --git a/Python/thread_nt.h b/Python/thread_nt.h
index 453e942..18b01be 100644
--- a/Python/thread_nt.h
+++ b/Python/thread_nt.h
@@ -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)