We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a4ca0a commit 8156f8eCopy full SHA for 8156f8e
src/sync.jl
@@ -1,6 +1,6 @@
1
module Sync
2
- global mutex = ReentrantLock()
3
- global sync_level = repeat([ 0 ], Threads.nthreads())
+ const mutex = ReentrantLock()
+ const sync_level = repeat([ 0 ], Threads.nthreads())
4
5
@inline is_locked() = sync_level[Threads.threadid()] > 0
6
0 commit comments