diff options
author | Fred Drake <fdrake@acm.org> | 2002-01-19 22:02:55 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-01-19 22:02:55 (GMT) |
commit | 7bb1c9a11db2ecdf58fed5a5e3a7cdea619d52db (patch) | |
tree | edd4767d8b3b2126fcd0084d3ed1a321bdf9b3a9 /Python/thread_foobar.h | |
parent | 72c3bf076f785aaf54d63a7e8cae29bc8282920e (diff) | |
download | cpython-7bb1c9a11db2ecdf58fed5a5e3a7cdea619d52db.zip cpython-7bb1c9a11db2ecdf58fed5a5e3a7cdea619d52db.tar.gz cpython-7bb1c9a11db2ecdf58fed5a5e3a7cdea619d52db.tar.bz2 |
Remove the unused & broken PyThread_*_sema() functions and related constants.
This closes SF patch #504215.
Diffstat (limited to 'Python/thread_foobar.h')
-rw-r--r-- | Python/thread_foobar.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Python/thread_foobar.h b/Python/thread_foobar.h index 4baf7e7..67491a1 100644 --- a/Python/thread_foobar.h +++ b/Python/thread_foobar.h @@ -113,37 +113,3 @@ PyThread_release_lock(PyThread_type_lock lock) { dprintf(("PyThread_release_lock(%p) called\n", lock)); } - -/* - * Semaphore support. - */ -PyThread_type_sema -PyThread_allocate_sema(int value) -{ - dprintf(("PyThread_allocate_sema called\n")); - if (!initialized) - PyThread_init_thread(); - - dprintf(("PyThread_allocate_sema() -> %p\n", sema)); - return (PyThread_type_sema) sema; -} - -void -PyThread_free_sema(PyThread_type_sema sema) -{ - dprintf(("PyThread_free_sema(%p) called\n", sema)); -} - -int -PyThread_down_sema(PyThread_type_sema sema, int waitflag) -{ - dprintf(("PyThread_down_sema(%p, %d) called\n", sema, waitflag)); - dprintf(("PyThread_down_sema(%p) return\n", sema)); - return -1; -} - -void -PyThread_up_sema(PyThread_type_sema sema) -{ - dprintf(("PyThread_up_sema(%p)\n", sema)); -} |