MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / lock

Method lock

src/runtime/CL/CLTensorAllocator.cpp:203–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203uint8_t *CLTensorAllocator::lock()
204{
205 if (_ctx)
206 {
207 return map(_ctx->gpu_scheduler()->queue(), true);
208 }
209 else
210 {
211 return map(CLScheduler::get().queue(), true);
212 }
213}
214
215void CLTensorAllocator::unlock()
216{

Callers

nothing calls this directly

Calls 2

mapFunction · 0.85
gpu_schedulerMethod · 0.80

Tested by

no test coverage detected