Function gdal_sys::CPLVirtualMemIsAccessThreadSafe
source ยท pub unsafe extern "C" fn CPLVirtualMemIsAccessThreadSafe(
ctxt: *mut CPLVirtualMem,
) -> c_int
Expand description
Return TRUE if this memory mapping can be accessed safely from concurrent threads.
The situation that can cause problems is when several threads try to access a page of the mapping that is not yet mapped.
The return value of this function depends on whether bSingleThreadUsage has been set of not in CPLVirtualMemNew() and/or the implementation.
On Linux, this will always return TRUE if bSingleThreadUsage = FALSE.
@param ctxt context returned by CPLVirtualMemNew(). @return TRUE if this memory mapping can be accessed safely from concurrent threads.
@since GDAL 1.11