We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51a408e commit fe1db59Copy full SHA for fe1db59
Doc/library/threading.rst
@@ -840,6 +840,12 @@ the lock to an unlocked state and allows another thread blocked in
840
must have a release in the thread that has acquired the lock. Failing to
841
call release as many times the lock has been acquired can lead to deadlock.
842
843
+.. tip::
844
+
845
+ Because lock acquisition can be interrupted by signals, sharing reentrant
846
+ locks between :mod:`signal` handlers and the main thread can lead to
847
+ surprising behavior. Therefore, this is generally not recommended.
848
849
850
.. class:: RLock()
851
0 commit comments