MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / createEvent

Function createEvent

src/backend/cpu/Event.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30af_event createEvent() {
31 auto e = make_unique<Event>();
32 // Ensure that the default queue is initialized
33 getQueue();
34 if (e->create() != 0) {
35 AF_ERROR("Could not create event", AF_ERR_RUNTIME);
36 }
37 Event& ref = *e.release();
38 return getHandle(ref);
39}
40
41void markEventOnActiveQueue(af_event eventHandle) {
42 Event& event = getEvent(eventHandle);

Callers 2

createAndMarkEventFunction · 0.70
af_create_eventFunction · 0.50

Calls 3

getQueueFunction · 0.50
getHandleFunction · 0.50
createMethod · 0.45

Tested by

no test coverage detected