summaryrefslogtreecommitdiffstats
path: root/Python/thread_nt.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-08 14:17:53 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-08 14:17:53 (GMT)
commitcf1474b73ad3e4085af220f3845b75b201974d38 (patch)
tree3f0376625f60a95747ce8e83307a3b15cf077f89 /Python/thread_nt.h
parent5b1d9bad3266b90d7d37b7f2543d22887c2623c9 (diff)
downloadcpython-cf1474b73ad3e4085af220f3845b75b201974d38.zip
cpython-cf1474b73ad3e4085af220f3845b75b201974d38.tar.gz
cpython-cf1474b73ad3e4085af220f3845b75b201974d38.tar.bz2
Sjoerd's thread changes (including down_sema typo fix).
Note: waitflag not supported on NT.
Diffstat (limited to 'Python/thread_nt.h')
-rw-r--r--Python/thread_nt.h6
1 files changed, 5 insertions, 1 deletions
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 @@ void free_sema(type_sema aSemaphore)
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 @@ void down_sema(type_sema aSemaphore)
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)