\brief Creates a new event and marks it in the queue
| 22 | namespace cpu { |
| 23 | /// \brief Creates a new event and marks it in the queue |
| 24 | Event makeEvent(cpu::queue& queue) { |
| 25 | Event e; |
| 26 | if (0 == e.create()) { e.mark(queue); } |
| 27 | return e; |
| 28 | } |
| 29 | |
| 30 | af_event createEvent() { |
| 31 | auto e = make_unique<Event>(); |