mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Massive changes for separate thread state management.
All per-thread globals are moved into a struct which is manipulated separately.
This commit is contained in:
parent
73237c54b4
commit
a027efa5bf
15 changed files with 865 additions and 262 deletions
|
@ -35,6 +35,10 @@ extern "C" {
|
|||
#define up_sema PyThread_up_sema
|
||||
#define exit_prog PyThread_exit_prog
|
||||
#define _exit_prog PyThread__exit_prog
|
||||
#define create_key PyThread_create_key
|
||||
#define delete_key PyThread_delete_key
|
||||
#define get_key_value PyThread_get_key_value
|
||||
#define set_key_value PyThread_set_key_value
|
||||
|
||||
|
||||
void init_thread Py_PROTO((void));
|
||||
|
@ -62,6 +66,11 @@ void exit_prog Py_PROTO((int));
|
|||
void _exit_prog Py_PROTO((int));
|
||||
#endif
|
||||
|
||||
int create_key Py_PROTO((void));
|
||||
void delete_key Py_PROTO((int));
|
||||
int set_key_value Py_PROTO((int, void *));
|
||||
void * get_key_value Py_PROTO((int));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue