Commit 4e5b2c39 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

memory locking is now done at memory subsystem

parent 40ac360c
......@@ -38,8 +38,6 @@ int setAffinity(int affinity);
int setPriority(int priority);
int lockMemory();
/** Checks for realtime (PREEMPT_RT) patched kernel.
*
* See https://rt.wiki.kernel.org
......
......@@ -78,19 +78,6 @@ int init(int priority, int affinity)
#ifdef __linux__
int lockMemory()
{
int ret;
#ifdef _POSIX_MEMLOCK
ret = mlockall(MCL_CURRENT | MCL_FUTURE);
if (ret)
throw SystemError("Failed to lock memory");
#endif
return 0;
}
int setAffinity(int affinity)
{
char isolcpus[255];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment