diff options
| author | Guido van Rossum <guido@python.org> | 1996-10-08 14:17:53 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1996-10-08 14:17:53 +0000 |
| commit | 7a0232ab140edb21ae16ee49357e94e5aa80a647 (patch) | |
| tree | ffa7dd2496674f08f1b9cf2e7dcc332bd524897f /Python/thread_nt.h | |
| parent | fd9d95648aa55e5ef7b5c240176541317052cac8 (diff) | |
| download | cpython-7a0232ab140edb21ae16ee49357e94e5aa80a647.tar.gz | |
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.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Python/thread_nt.h b/Python/thread_nt.h index 453e942b99..18b01be6fd 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) |
