mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Fix for [ 1010677 ] thread Module Breaks PyGILState_Ensure(),
and a test case. When booting a new thread, use the PyGILState API to manage the GIL.
This commit is contained in:
parent
8107ca47eb
commit
eb619bb80b
2 changed files with 7 additions and 5 deletions
|
@ -43,3 +43,7 @@ except AttributeError:
|
|||
|
||||
if have_thread_state:
|
||||
TestThreadState()
|
||||
import threading
|
||||
t=threading.Thread(target=TestThreadState)
|
||||
t.start()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue