File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ cdef void _context_capsule_deleter(object o):
63
63
o, " SyclContextRef"
64
64
)
65
65
DPCTLContext_Delete(CRef)
66
+ elif pycapsule.PyCapsule_IsValid(o, " used_SyclContextRef" ):
67
+ CRef = < DPCTLSyclContextRef> pycapsule.PyCapsule_GetPointer(
68
+ o, " used_SyclContextRef"
69
+ )
70
+ DPCTLContext_Delete(CRef)
66
71
67
72
68
73
cdef void _init_helper(_SyclContext context, DPCTLSyclContextRef CRef):
Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ cdef void _event_capsule_deleter(object o):
71
71
o, " SyclEventRef"
72
72
)
73
73
DPCTLEvent_Delete(ERef)
74
+ elif pycapsule.PyCapsule_IsValid(o, " used_SyclEventRef" ):
75
+ ERef = < DPCTLSyclEventRef> pycapsule.PyCapsule_GetPointer(
76
+ o, " used_SyclEventRef"
77
+ )
78
+ DPCTLEvent_Delete(ERef)
74
79
75
80
76
81
cdef void _init_helper(_SyclEvent event, DPCTLSyclEventRef ERef):
Original file line number Diff line number Diff line change @@ -160,6 +160,11 @@ cdef void _queue_capsule_deleter(object o):
160
160
o, " SyclQueueRef"
161
161
)
162
162
DPCTLQueue_Delete(QRef)
163
+ elif pycapsule.PyCapsule_IsValid(o, " used_SyclQueueRef" ):
164
+ QRef = < DPCTLSyclQueueRef> pycapsule.PyCapsule_GetPointer(
165
+ o, " used_SyclQueueRef"
166
+ )
167
+ DPCTLQueue_Delete(QRef)
163
168
164
169
165
170
cdef class _SyclQueue:
You can’t perform that action at this time.
0 commit comments