File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ using ..C: C
12
12
"""
13
13
lock(f)
14
14
15
- Unlock the GIL, compute `f()`, unlock the GIL, then return the result of `f()`.
15
+ Lock the GIL, compute `f()`, unlock the GIL, then return the result of `f()`.
16
16
17
17
Use this to run Python code from threads that do not currently hold the GIL, such as new
18
18
threads. Since the main Julia thread holds the GIL by default, you will need to
32
32
"""
33
33
@lock expr
34
34
35
- Unlock the GIL, compute `expr`, unlock the GIL, then return the result of `expr`.
35
+ Lock the GIL, compute `expr`, unlock the GIL, then return the result of `expr`.
36
36
37
37
Use this to run Python code from threads that do not currently hold the GIL, such as new
38
38
threads. Since the main Julia thread holds the GIL by default, you will need to
You can’t perform that action at this time.
0 commit comments