[Python-checkins] [python/cpython] 85b34e: [3.5] bpo-30765: Avoid blocking when PyThread_acqu...

GitHub noreply at github.com
Mon Jun 26 16:07:24 EDT 2017


  Branch: refs/heads/3.5
  Home:   https://github.com/python/cpython
  Commit: 85b34edd8b575b918490afbcb0db6f791874dbdd
      https://github.com/python/cpython/commit/85b34edd8b575b918490afbcb0db6f791874dbdd
  Author: Antoine Pitrou <pitrou at free.fr>
  Date:   2017-06-26 (Mon, 26 Jun 2017)

  Changed paths:
    A Misc/NEWS.d/next/Core and Builtins/2017-06-26-14-29-50.bpo-30765.Q5iBmf.rst
    M Python/thread_pthread.h

  Log Message:
  -----------
  [3.5] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (#2419)

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




More information about the Python-checkins mailing list