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

Method isUserLocked

src/backend/common/DefaultMemoryManager.cpp:368–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368bool DefaultMemoryManager::isUserLocked(const void *ptr) {
369 memory_info &current = this->getCurrentMemoryInfo();
370 lock_guard_t lock(this->memory_mutex);
371 auto locked_iter = current.locked_map.find(const_cast<void *>(ptr));
372 if (locked_iter == current.locked_map.end()) { return false; }
373 return locked_iter->second.user_lock;
374}
375
376size_t DefaultMemoryManager::getMemStepSize() {
377 lock_guard_t lock(this->memory_mutex);

Callers 4

isLockedFunction · 0.45
isLockedFunction · 0.45
isLockedFunction · 0.45
isLockedFunction · 0.45

Calls 1

findMethod · 0.80

Tested by

no test coverage detected