We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d515a09 commit f3ef75eCopy full SHA for f3ef75e
1 file changed
Lib/test/test_ctypes/test_free_threading.py
@@ -28,7 +28,6 @@ def lookup():
28
func(packed_args)
29
30
num_workers = 20
31
-
32
barrier = threading.Barrier(num_workers)
33
34
threads = []
@@ -48,7 +47,6 @@ def race():
48
47
return POINT(1, 2)
49
50
51
52
53
54
@@ -69,21 +67,17 @@ class MemRefDescriptor(ctypes.Structure):
69
67
70
68
return MemRefDescriptor
71
72
73
class F32(ctypes.Structure):
74
_fields_ = [("f32", ctypes.c_float)]
75
76
77
def race():
78
barrier.wait()
79
ctp = F32
80
ctypes.pointer(
81
ctypes.pointer(make_nd_memref_descriptor(1, ctp)())
82
)
83
84
85
86
87
88
89
0 commit comments