This commit is contained in:
Wladimir J. van der Laan
2011-08-11 10:17:21 +02:00
16 changed files with 118 additions and 15 deletions

View File

@@ -35,6 +35,7 @@ typedef unsigned long long uint64;
// Note that VirtualLock does not provide this as a guarantee on Windows,
// but, in practice, memory that has been VirtualLock'd almost never gets written to
// the pagefile except in rare circumstances where memory is extremely low.
#include <windows.h>
#define mlock(p, n) VirtualLock((p), (n));
#define munlock(p, n) VirtualUnlock((p), (n));
#else