File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,24 @@ typedef void *type_sema;
1919extern "C" {
2020#endif
2121
22+ /* Macros defining new names for all these symbols */
23+ #define init_thread PyThread_init_thread
24+ #define start_new_thread PyThread_start_new_thread
25+ #define exit_thread PyThread_exit_thread
26+ #define _exit_thread PyThread__exit_thread
27+ #define get_thread_ident PyThread_get_thread_ident
28+ #define allocate_lock PyThread_allocate_lock
29+ #define free_lock PyThread_free_lock
30+ #define acquire_lock PyThread_acquire_lock
31+ #define release_lock PyThread_release_lock
32+ #define allocate_sema PyThread_allocate_sema
33+ #define free_sema PyThread_free_sema
34+ #define down_sema PyThread_down_sema
35+ #define up_sema PyThread_up_sema
36+ #define exit_prog PyThread_exit_prog
37+ #define _exit_prog PyThread__exit_prog
38+
39+
2240void init_thread Py_PROTO ((void ));
2341int start_new_thread Py_PROTO ((void (* )(void * ), void * ) );
2442void exit_thread Py_PROTO ((void ));
Original file line number Diff line number Diff line change @@ -19,6 +19,24 @@ typedef void *type_sema;
1919extern "C" {
2020#endif
2121
22+ /* Macros defining new names for all these symbols */
23+ #define init_thread PyThread_init_thread
24+ #define start_new_thread PyThread_start_new_thread
25+ #define exit_thread PyThread_exit_thread
26+ #define _exit_thread PyThread__exit_thread
27+ #define get_thread_ident PyThread_get_thread_ident
28+ #define allocate_lock PyThread_allocate_lock
29+ #define free_lock PyThread_free_lock
30+ #define acquire_lock PyThread_acquire_lock
31+ #define release_lock PyThread_release_lock
32+ #define allocate_sema PyThread_allocate_sema
33+ #define free_sema PyThread_free_sema
34+ #define down_sema PyThread_down_sema
35+ #define up_sema PyThread_up_sema
36+ #define exit_prog PyThread_exit_prog
37+ #define _exit_prog PyThread__exit_prog
38+
39+
2240void init_thread Py_PROTO ((void ));
2341int start_new_thread Py_PROTO ((void (* )(void * ), void * ) );
2442void exit_thread Py_PROTO ((void ));
You can’t perform that action at this time.
0 commit comments