Skip to content
Snippets Groups Projects
Commit 9ae2bfae authored by Michael Tüxen's avatar Michael Tüxen
Browse files

MacOS does not have a working mlockall().

parent ce701555
No related branches found
No related tags found
No related merge requests found
......@@ -466,8 +466,10 @@ void set_scheduling_priority(void)
*/
void lock_memory(void)
{
#if !defined(__APPLE__)
if (mlockall(MCL_CURRENT | MCL_FUTURE))
die_perror("lockall(MCL_CURRENT | MCL_FUTURE)");
#endif
}
/* Wait for and return the wall time at which we should start the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment