Add waitflag to down_sema().

This commit is contained in:
Guido van Rossum 1996-10-08 14:21:49 +00:00
parent 6e8583dcb3
commit a63518436a
2 changed files with 6 additions and 2 deletions

View File

@ -34,7 +34,9 @@ void release_lock Py_PROTO((type_lock));
type_sema allocate_sema Py_PROTO((int)); type_sema allocate_sema Py_PROTO((int));
void free_sema Py_PROTO((type_sema)); void free_sema Py_PROTO((type_sema));
void down_sema Py_PROTO((type_sema)); int down_sema Py_PROTO((type_sema, int));
#define WAIT_SEMA 1
#define NOWAIT_SEMA 0
void up_sema Py_PROTO((type_sema)); void up_sema Py_PROTO((type_sema));
#ifndef NO_EXIT_PROG #ifndef NO_EXIT_PROG

View File

@ -34,7 +34,9 @@ void release_lock Py_PROTO((type_lock));
type_sema allocate_sema Py_PROTO((int)); type_sema allocate_sema Py_PROTO((int));
void free_sema Py_PROTO((type_sema)); void free_sema Py_PROTO((type_sema));
void down_sema Py_PROTO((type_sema)); int down_sema Py_PROTO((type_sema, int));
#define WAIT_SEMA 1
#define NOWAIT_SEMA 0
void up_sema Py_PROTO((type_sema)); void up_sema Py_PROTO((type_sema));
#ifndef NO_EXIT_PROG #ifndef NO_EXIT_PROG