Staging
v0.5.1
https://github.com/python/cpython
Revision 87255be6964979b5abdc4b9dcf81cdcfdad6e753 authored by Victor Stinner on 07 April 2020, 21:11:49 UTC, committed by GitHub on 07 April 2020, 21:11:49 UTC
Add a private _at_fork_reinit() method to _thread.Lock,
_thread.RLock, threading.RLock and threading.Condition classes:
reinitialize the lock after fork in the child process; reset the lock
to the unlocked state.

Rename also the private _reset_internal_locks() method of
threading.Event to _at_fork_reinit().

* Add _PyThread_at_fork_reinit() private function. It is excluded
  from the limited C API.
* threading.Thread._reset_internal_locks() now calls
  _at_fork_reinit() on self._tstate_lock rather than creating a new
  Python lock object.
1 parent 48b069a
History
Tip revision: 87255be6964979b5abdc4b9dcf81cdcfdad6e753 authored by Victor Stinner on 07 April 2020, 21:11:49 UTC
bpo-40089: Add _at_fork_reinit() method to locks (GH-19195)
Tip revision: 87255be
File Mode Size
windows-release
ci.yml -rw-r--r-- 3.3 KB
docs-steps.yml -rw-r--r-- 1.3 KB
macos-steps.yml -rw-r--r-- 768 bytes
posix-deps-apt.sh -rwxr-xr-x 590 bytes
posix-steps.yml -rw-r--r-- 2.6 KB
pr.yml -rw-r--r-- 3.2 KB
prebuild-checks.yml -rw-r--r-- 1.2 KB
windows-layout-steps.yml -rw-r--r-- 1.5 KB
windows-release.yml -rw-r--r-- 3.9 KB
windows-steps.yml -rw-r--r-- 1.5 KB

back to top