diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-08 12:57:06 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-08 12:57:06 +0200 |
commit | de10f4054b6bd6dd286559d7bbaaff7364282fc7 (patch) | |
tree | 9540bf576e1ce6f8be8e400c9c5e6f108f494544 /Python/thread_pthread.h | |
parent | cfa7123ef108452dd402e3cdcec772be28872e2f (diff) | |
download | cpython-de10f4054b6bd6dd286559d7bbaaff7364282fc7.tar.gz cpython-de10f4054b6bd6dd286559d7bbaaff7364282fc7.zip |
faulthandler: one more time, fix usage of locks in the watchdog thread
* Write a new test to ensure that dump_tracebacks_later() still works if
it was already called and then cancelled before
* Don't use a variable to check the status of the thread, only rely on locks
* The thread only releases cancel_event if it was able to acquire it (if
the timer was interrupted)
* The main thread always hold this lock. It is only released when
faulthandler_thread() is interrupted until this thread exits, or at Python
exit.
Diffstat (limited to 'Python/thread_pthread.h')
0 files changed, 0 insertions, 0 deletions