]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add waitflag to down_sema().
authorGuido van Rossum <guido@python.org>
Tue, 8 Oct 1996 14:21:49 +0000 (14:21 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 8 Oct 1996 14:21:49 +0000 (14:21 +0000)
Include/pythread.h
Include/thread.h

index 3a04a8ba53b7dbe142030d985175f17175f4f28e..965e0f8b67e2485d22fbb2e3c79abf309e961dd0 100644 (file)
@@ -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
index 3a04a8ba53b7dbe142030d985175f17175f4f28e..965e0f8b67e2485d22fbb2e3c79abf309e961dd0 100644 (file)
@@ -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