Skip to content

Commit f629601

Browse files
author
Christopher Doris
committed
document that multi-threading support is experimental
1 parent d6c4fb7 commit f629601

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

docs/src/juliacall.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ be configured in two ways:
140140

141141
## [Multi-threading](@id py-multi-threading)
142142

143+
!!! warning
144+
145+
Multi-threading support is experimental and can change without notice.
146+
143147
From v0.9.22, JuliaCall supports multi-threading in Julia and/or Python, with some
144148
caveats.
145149

docs/src/pythoncall.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ See [Installing Python packages](@ref python-deps).
415415

416416
## [Multi-threading](@id jl-multi-threading)
417417

418+
!!! warning
419+
420+
Multi-threading support is experimental and can change without notice.
421+
418422
From v0.9.22, PythonCall supports multi-threading in Julia and/or Python, with some
419423
caveats.
420424

src/GIL/GIL.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
Handling the Python Global Interpreter Lock.
55
66
See [`lock`](@ref), [`@lock`](@ref), [`unlock`](@ref) and [`@unlock`](@ref).
7+
8+
!!! warning
9+
10+
Multi-threading support is experimental and can change without notice.
711
"""
812
module GIL
913

@@ -32,6 +36,10 @@ threads. Since the main Julia thread holds the GIL by default, you will need to
3236
[`unlock`](@ref) the GIL before using this function.
3337
3438
See [`@lock`](@ref) for the macro form.
39+
40+
!!! warning
41+
42+
This function is experimental. Its semantics may be changed without notice.
3543
"""
3644
function lock(f)
3745
state = C.PyGILState_Ensure()
@@ -52,6 +60,10 @@ threads. Since the main Julia thread holds the GIL by default, you will need to
5260
[`@unlock`](@ref) the GIL before using this function.
5361
5462
The macro equivalent of [`lock`](@ref).
63+
64+
!!! warning
65+
66+
This macro is experimental. Its semantics may be changed without notice.
5567
"""
5668
macro lock(expr)
5769
quote
@@ -74,6 +86,10 @@ Python code. That other thread can be a Julia thread, which must lock the GIL us
7486
[`lock`](@ref).
7587
7688
See [`@unlock`](@ref) for the macro form.
89+
90+
!!! warning
91+
92+
This function is experimental. Its semantics may be changed without notice.
7793
"""
7894
function unlock(f)
7995
state = C.PyEval_SaveThread()
@@ -94,6 +110,10 @@ Python code. That other thread can be a Julia thread, which must lock the GIL us
94110
[`@lock`](@ref).
95111
96112
The macro equivalent of [`unlock`](@ref).
113+
114+
!!! warning
115+
116+
This macro is experimental. Its semantics may be changed without notice.
97117
"""
98118
macro unlock(expr)
99119
quote

0 commit comments

Comments
 (0)