Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cannot lock channels on julia 1.6
Browse files Browse the repository at this point in the history
Christopher Doris committed Jul 29, 2024
1 parent 8ca05c9 commit e230ce9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/GC/GC.jl
Original file line number Diff line number Diff line change
@@ -55,12 +55,10 @@ function gc()
end

function unsafe_free_queue()
if isready(QUEUE)
@lock QUEUE while isready(QUEUE)
ptr = take!(QUEUE)
if ptr != C.PyNULL
C.Py_DecRef(ptr)
end
while isready(QUEUE)
ptr = take!(QUEUE)
if ptr != C.PyNULL
C.Py_DecRef(ptr)
end
end
nothing

0 comments on commit e230ce9

Please sign in to comment.