summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-10-08 14:21:49 (GMT)
committerGuido van Rossum <guido@python.org>1996-10-08 14:21:49 (GMT)
commita63518436a2742d261df7e6b2f5f5d9a405ba600 (patch)
tree9f24e1302d642549692e8e623328d82e7fd326e9
parent6e8583dcb3c2da749349cc14621748c3920f07b2 (diff)
downloadcpython-a63518436a2742d261df7e6b2f5f5d9a405ba600.zip
cpython-a63518436a2742d261df7e6b2f5f5d9a405ba600.tar.gz
cpython-a63518436a2742d261df7e6b2f5f5d9a405ba600.tar.bz2
Add waitflag to down_sema().
-rw-r--r--Include/pythread.h4
-rw-r--r--Include/thread.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/Include/pythread.h b/Include/pythread.h
index 3a04a8b..965e0f8 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 3a04a8b..965e0f8 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