Skip to content

Commit ab8ac53

Browse files
committed
let read do not use lock
1 parent 3f2a5c8 commit ab8ac53

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

‎cuda_bindings_13/cuda/bindings/_internal/driver_linux.pyx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# This code was automatically generated across versions from 12.9.0 to 13.5.0. Do not modify it directly.
66
# !!! WARNING: THIS FILE CONTAINS PRERELEASE APIs !!!
7-
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=0bc6d0264818d8e1743ac975b3def902d8abfdce60a9dd0757b8dbfb0eb71cc2
7+
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=4cb5d4dc3795831a0f50a8ecf92dbe9b963a2cb908cb657db98e7f14d7164512
88

99

1010
# <<<< PREAMBLE CONTENT >>>>
@@ -3793,9 +3793,10 @@ cpdef dict _inspect_function_pointers():
37933793

37943794
cpdef _inspect_function_pointer(str name):
37953795
global _cyb_func_ptrs
3796-
with _cyb_func_ptrs_lock:
3797-
if _cyb_func_ptrs is None:
3798-
_cyb_func_ptrs = _inspect_function_pointers()
3796+
if _cyb_func_ptrs is None:
3797+
with _cyb_func_ptrs_lock:
3798+
if _cyb_func_ptrs is None:
3799+
_cyb_func_ptrs = _inspect_function_pointers()
37993800
return _cyb_func_ptrs[name]
38003801

38013802

‎cuda_bindings_13/cuda/bindings/_internal/driver_windows.pyx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# This code was automatically generated across versions from 12.9.0 to 13.5.0. Do not modify it directly.
66
# !!! WARNING: THIS FILE CONTAINS PRERELEASE APIs !!!
7-
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=b37b85b769459d1cd959de858aea6995f9b06befd79aeceb945b819d206414fb
7+
# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=95db262e65cd453b232f6c9eb3b4574a4bc371eb384b224b3c2b6f85778bd38e
88

99

1010
# <<<< PREAMBLE CONTENT >>>>
@@ -3796,9 +3796,10 @@ cpdef dict _inspect_function_pointers():
37963796

37973797
cpdef _inspect_function_pointer(str name):
37983798
global _cyb_func_ptrs
3799-
with _cyb_func_ptrs_lock:
3800-
if _cyb_func_ptrs is None:
3801-
_cyb_func_ptrs = _inspect_function_pointers()
3799+
if _cyb_func_ptrs is None:
3800+
with _cyb_func_ptrs_lock:
3801+
if _cyb_func_ptrs is None:
3802+
_cyb_func_ptrs = _inspect_function_pointers()
38023803
return _cyb_func_ptrs[name]
38033804

38043805

0 commit comments

Comments
 (0)