/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// MapViewOfFile2 is just an inline function that calls MapViewOfFileNuma2 with // its preferred node set to NUMA_NO_PREFERRED_NODE
WINBASEAPI PVOID WINAPI MapViewOfFileNuma2(HANDLE aFileMapping, HANDLE aProcess,
ULONG64 aOffset, PVOID aBaseAddress,
SIZE_T aViewSize,
ULONG aAllocationType,
ULONG aPageProtection,
ULONG aPreferredNode);
MOZ_ASSERT(!!pNtMapViewOfSection); if (!pNtMapViewOfSection) { return nullptr;
}
// For the sake of consistency, we only permit the same flags that // MapViewOfFileNuma2 allows if (aAllocationType != 0 && aAllocationType != MEM_RESERVE &&
aAllocationType != MEM_LARGE_PAGES) {
::SetLastError(ERROR_INVALID_PARAMETER); return nullptr;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.