mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
memory locking is now done at memory subsystem
This commit is contained in:
parent
ed54831e6e
commit
34a1406ec8
2 changed files with 0 additions and 15 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue