Skip to content

Commit 1be81a0

Browse files
committed
change lock to RLock to handle recursion issue
1 parent 58b7074 commit 1be81a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_bindings/cuda/bindings/_bindings/cydriver.pyx.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import os
1414
import sys
1515
import threading
1616
cimport cuda.bindings._bindings.loader as loader
17-
cdef object __symbol_lock = threading.Lock()
17+
cdef object __symbol_lock = threading.RLock()
1818
cdef bint __cuPythonInit = False
1919
{{if 'cuGetErrorString' in found_functions}}cdef void *__cuGetErrorString = NULL{{endif}}
2020
{{if 'cuGetErrorName' in found_functions}}cdef void *__cuGetErrorName = NULL{{endif}}

0 commit comments

Comments
 (0)