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

Function msync

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

Source from the content-addressed store, hash-verified

145}
146
147static inline int msync(void* addr, size_t len, int flags) {
148 if (FlushViewOfFile(addr, len)) return 0;
149
150 errno = __map_mman_error(GetLastError(), EPERM);
151
152 return -1;
153}
154
155static inline int mlock(const void* addr, size_t len) {
156 if (VirtualLock((LPVOID)addr, len)) return 0;

Callers

nothing calls this directly

Calls 1

__map_mman_errorFunction · 0.85

Tested by

no test coverage detected