Skip to content

Commit bd1fd4c

Browse files
committed
Switch atomics to refs
1 parent 6a5ffd8 commit bd1fd4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Convex.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ of disciplined convex form. To turn warnings off, run
4646
4747
Convex.DCP_WARNINGS[] = false
4848
"""
49-
const DCP_WARNINGS = Threads.Atomic{Bool}(true)
49+
const DCP_WARNINGS = Ref(true)
5050

5151
"""
5252
MAXDEPTH
@@ -55,7 +55,7 @@ Controls depth of tree printing globally for Convex.jl; defaults to 3. Set via
5555
5656
Convex.MAXDEPTH[] = 5
5757
"""
58-
const MAXDEPTH = Threads.Atomic{Int}(3)
58+
const MAXDEPTH = Ref(3)
5959

6060
"""
6161
MAXWIDTH
@@ -64,7 +64,7 @@ Controls width of tree printing globally for Convex.jl; defaults to 15. Set via
6464
6565
Convex.MAXWIDTH[] = 15
6666
"""
67-
const MAXWIDTH= Threads.Atomic{Int}(15)
67+
const MAXWIDTH= Ref(15)
6868

6969
### modeling framework
7070
include("dcp.jl")

0 commit comments

Comments
 (0)