File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ the synchronization primitives from the :mod:`threading` module instead.
6868
6969Besides, only the main thread of the main interpreter is allowed to set a new signal handler.
7070
71+ .. warning ::
72+
73+ Synchronization primitives such as :class: `threading.Lock ` must not be shared
74+ between between signal handlers and other threads.
75+ Because blocking synchronization calls can be interrupted by signals,
76+ such sharing can lead to surprising dead locks.
77+
7178
7279Module contents
7380---------------
Original file line number Diff line number Diff line change @@ -13,14 +13,6 @@ level :mod:`_thread` module.
1313
1414.. include :: ../includes/wasm-notavail.rst
1515
16- .. warning ::
17-
18- Syncrhonization primitives must not be shared between between :mod: `signal `
19- handlers and the main thread.
20- Because blocking syncrhonizations calls can be interrupted by signals,
21- such sharing can lead to surprising dead locks.
22-
23-
2416Introduction
2517------------
2618
You can’t perform that action at this time.
0 commit comments