]> granicus.if.org Git - python/commit
bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (#2403)
authorAntoine Pitrou <pitrou@free.fr>
Mon, 26 Jun 2017 18:41:07 +0000 (20:41 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jun 2017 18:41:07 +0000 (20:41 +0200)
commitf84ac420c2af98339678744953869cad3c253281
treec43cedbdbae29574ee72815ffe348c33bbfedf68
parent63f54c68936d648c70ca411661e4208329edcf26
bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (#2403)

* 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
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