]> granicus.if.org Git - python/commit
[3.6] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH...
authorAntoine Pitrou <pitrou@free.fr>
Mon, 26 Jun 2017 19:57:28 +0000 (21:57 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2017 19:57:28 +0000 (21:57 +0200)
commit55ab604e3fdb91baabe98d1c407b5910eeb31cef
treee9cd9773e66f0bc9e047877ba64e51f209ba854b
parent64a0c266e78c6b5363668012fa7fb614f6018930
[3.6] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (#2418)

* bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to lock

This is especially important if PyThread_acquire_lock() is called reentrantly
(for example from a signal handler).

* Update 2017-06-26-14-29-50.bpo-30765.Q5iBmf.rst

* Avoid core logic when taking the mutex failed
(cherry picked from commit f84ac420c2af98339678744953869cad3c253281)
Misc/NEWS.d/next/Core and Builtins/2017-06-26-14-29-50.bpo-30765.Q5iBmf.rst [new file with mode: 0644]
Python/thread_pthread.h