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

Method enqueue

src/backend/cpu/queue.hpp:99–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98 template<typename F, typename... Args>
99 void enqueue(const F func, Args &&...args) {
100 count++;
101 if (sync_calls) {
102 func(toParam(std::forward<Args>(args))...);
103 } else {
104 aQueue.enqueue(func, toParam(std::forward<Args>(args))...);
105 }
106#ifndef NDEBUG
107 sync();
108#else
109 if (getMemoryPressure() >= getMemoryPressureThreshold() ||
110 count >= 25) {
111 sync();
112 }
113#endif
114 }
115
116 void sync() {
117 count = 0;

Callers 15

reorderFunction · 0.45
resizeFunction · 0.45
histogramFunction · 0.45
hsv2rgbFunction · 0.45
rgb2hsvFunction · 0.45
exampleFunctionFunction · 0.45
scanFunction · 0.45
scanFunction · 0.45
svdInPlaceFunction · 0.45
nearest_neighbourFunction · 0.45
bilateralFunction · 0.45
identityFunction · 0.45

Calls 4

toParamFunction · 0.85
syncFunction · 0.70
getMemoryPressureFunction · 0.70

Tested by

no test coverage detected