Skip to content

Commit e230ce9

Browse files
author
Christopher Doris
committed
cannot lock channels on julia 1.6
1 parent 8ca05c9 commit e230ce9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/GC/GC.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,10 @@ function gc()
5555
end
5656

5757
function unsafe_free_queue()
58-
if isready(QUEUE)
59-
@lock QUEUE while isready(QUEUE)
60-
ptr = take!(QUEUE)
61-
if ptr != C.PyNULL
62-
C.Py_DecRef(ptr)
63-
end
58+
while isready(QUEUE)
59+
ptr = take!(QUEUE)
60+
if ptr != C.PyNULL
61+
C.Py_DecRef(ptr)
6462
end
6563
end
6664
nothing

0 commit comments

Comments
 (0)