… | |
… | |
142 | } |
142 | } |
143 | |
143 | |
144 | static cl_event * |
144 | static cl_event * |
145 | event_list (SV **items, int count) |
145 | event_list (SV **items, int count) |
146 | { |
146 | { |
|
|
147 | if (!count) |
|
|
148 | return 0; |
|
|
149 | |
147 | cl_event *list = tmpbuf (sizeof (cl_event) * count); |
150 | cl_event *list = tmpbuf (sizeof (cl_event) * count); |
148 | |
151 | |
149 | while (count--) |
152 | while (count--) |
150 | list [count] = SvPTROBJ ("clEnqueue", "wait_events", items [count], "OpenCL::Event"); |
153 | list [count] = SvPTROBJ ("clEnqueue", "wait_events", items [count], "OpenCL::Event"); |
151 | |
154 | |