MCPcopy Create free account
hub / github.com/apache/arrow / mlock

Function mlock

cpp/src/arrow/io/mman.h:155–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155static inline int mlock(const void* addr, size_t len) {
156 if (VirtualLock((LPVOID)addr, len)) return 0;
157
158 errno = __map_mman_error(GetLastError(), EPERM);
159
160 return -1;
161}
162
163static inline int munlock(const void* addr, size_t len) {
164 if (VirtualUnlock((LPVOID)addr, len)) return 0;

Callers

nothing calls this directly

Calls 1

__map_mman_errorFunction · 0.85

Tested by

no test coverage detected