mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Add waitflag to down_sema().
This commit is contained in:
parent
6e8583dcb3
commit
a63518436a
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue