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 943473f commit 3b6caaaCopy full SHA for 3b6caaa
src/GIL/GIL.jl
@@ -9,8 +9,10 @@ module GIL
9
10
using ..C: C
11
12
-# Ensure that only one Julia thread tries to acquire the Python GIL
13
-# PyGILState_Ensure and PyGILState_Release may not be thread safe.
+# Ensure that only one Julia task tries to acquire the Python GIL.
+# Avoid the potential issue that a task could miscompute whether
14
+# it actually has the GIL simply because a different task that ran
15
+# on the same thread that once had the GIL.
16
# https://github.com/JuliaPy/PythonCall.jl/issues/627
17
const _jl_gil_lock = ReentrantLock()
18
0 commit comments