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

Function checkUserLock

src/api/c/memory.cpp:185–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184template<typename T>
185inline bool checkUserLock(const af_array arr) {
186 detail::Array<T> &out = const_cast<detail::Array<T> &>(getArray<T>(arr));
187 return isLocked(static_cast<void *>(out.get()));
188}
189
190af_err af_is_locked_array(bool *res, const af_array arr) {
191 try {

Callers

nothing calls this directly

Calls 2

isLockedFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected