mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
#4852: Remove dead code in every thread implementation, unused for many years.
This commit is contained in:
parent
f20f9c299e
commit
adfc80bd81
16 changed files with 29 additions and 576 deletions
|
@ -2,9 +2,6 @@
|
|||
#ifndef Py_PYTHREAD_H
|
||||
#define Py_PYTHREAD_H
|
||||
|
||||
#define NO_EXIT_PROG /* don't define PyThread_exit_prog() */
|
||||
/* (the result is no use of signals on SGI) */
|
||||
|
||||
typedef void *PyThread_type_lock;
|
||||
typedef void *PyThread_type_sema;
|
||||
|
||||
|
@ -15,7 +12,6 @@ extern "C" {
|
|||
PyAPI_FUNC(void) PyThread_init_thread(void);
|
||||
PyAPI_FUNC(long) PyThread_start_new_thread(void (*)(void *), void *);
|
||||
PyAPI_FUNC(void) PyThread_exit_thread(void);
|
||||
PyAPI_FUNC(void) PyThread__PyThread_exit_thread(void);
|
||||
PyAPI_FUNC(long) PyThread_get_thread_ident(void);
|
||||
|
||||
PyAPI_FUNC(PyThread_type_lock) PyThread_allocate_lock(void);
|
||||
|
@ -28,11 +24,6 @@ PyAPI_FUNC(void) PyThread_release_lock(PyThread_type_lock);
|
|||
PyAPI_FUNC(size_t) PyThread_get_stacksize(void);
|
||||
PyAPI_FUNC(int) PyThread_set_stacksize(size_t);
|
||||
|
||||
#ifndef NO_EXIT_PROG
|
||||
PyAPI_FUNC(void) PyThread_exit_prog(int);
|
||||
PyAPI_FUNC(void) PyThread__PyThread_exit_prog(int);
|
||||
#endif
|
||||
|
||||
/* Thread Local Storage (TLS) API */
|
||||
PyAPI_FUNC(int) PyThread_create_key(void);
|
||||
PyAPI_FUNC(void) PyThread_delete_key(int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue