From: Guido van Rossum Date: Tue, 8 Oct 1996 14:21:49 +0000 (+0000) Subject: Add waitflag to down_sema(). X-Git-Tag: v1.4~131 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a63518436a2742d261df7e6b2f5f5d9a405ba600;p=thirdparty%2FPython%2Fcpython.git Add waitflag to down_sema(). --- diff --git a/Include/pythread.h b/Include/pythread.h index 3a04a8ba53b7..965e0f8b67e2 100644 --- a/Include/pythread.h +++ b/Include/pythread.h @@ -34,7 +34,9 @@ void release_lock Py_PROTO((type_lock)); type_sema allocate_sema Py_PROTO((int)); 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)); #ifndef NO_EXIT_PROG diff --git a/Include/thread.h b/Include/thread.h index 3a04a8ba53b7..965e0f8b67e2 100644 --- a/Include/thread.h +++ b/Include/thread.h @@ -34,7 +34,9 @@ void release_lock Py_PROTO((type_lock)); type_sema allocate_sema Py_PROTO((int)); 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)); #ifndef NO_EXIT_PROG