Skip to content

Commit

Permalink
bpo-1635741: Refactor _threadmodule.c (pythonGH-23793)
Browse files Browse the repository at this point in the history
* Fix ExceptHookArgsType name: "_thread.ExceptHookArgs", instead of
  "_thread._ExceptHookArgs".
* PyInit__thread() no longer intializes interp->num_threads to 0:
  it is already done in PyInterpreterState_New().
* Use PyModule_AddType(), Py_NewRef() and Py_XNewRef().
* Replace str_dict variable with _Py_IDENTIFIER(__dict__).
* Remove assert(Py_IS_TYPE(obj, &Locktype)) from release_sentinel()
  to avoid having to retrive the type from this callback.
* Add thread_bootstate_free()
* Rename t_bootstrap() to thread_run()
* bootstate structure: rename keyw member to kwargs
  • Loading branch information
vstinner authored and adorilson committed Mar 11, 2021
1 parent 7c9b58b commit bc6346f
Showing 1 changed file with 226 additions and 311 deletions.

0 comments on commit bc6346f

Please sign in to comment.