summaryrefslogtreecommitdiff
path: root/AudioManagerUtilities/include/CAmSocketHandler.h
diff options
context:
space:
mode:
authorAleksandar Donchev <aleksander.donchev@partner.bmw.de>2018-02-07 10:51:17 +0100
committerJacqueline Molz <Jacqueline.Molz@bmw.de>2018-02-13 12:54:59 +0100
commitb6753f2666811af437c8711dd06509e4c7ca3f33 (patch)
tree9f4032a508e717cb55e2cf38912e1d46565e53d8 /AudioManagerUtilities/include/CAmSocketHandler.h
parentd6481481d86408a5b1c74162012167ed57ac6ee9 (diff)
downloadaudiomanager-b6753f2666811af437c8711dd06509e4c7ca3f33.tar.gz
The real-time scheduler removed.
Signed-off-by: Christian Linke <christian.linke@bmw.de> Change-Id: I7c8a2c474bc8fac62c76a46545a231c518edb2a8
Diffstat (limited to 'AudioManagerUtilities/include/CAmSocketHandler.h')
-rw-r--r--AudioManagerUtilities/include/CAmSocketHandler.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/AudioManagerUtilities/include/CAmSocketHandler.h b/AudioManagerUtilities/include/CAmSocketHandler.h
index 2fd5c42..53010ba 100644
--- a/AudioManagerUtilities/include/CAmSocketHandler.h
+++ b/AudioManagerUtilities/include/CAmSocketHandler.h
@@ -492,29 +492,7 @@ public:
void exit_mainloop();
bool fatalErrorOccurred();
-#ifdef WITH_REALTIME_SCHEDULER
- /**
- * Set scheduling algorithm and/or parameters for a thread whose ID is specified in pid.
- * If pid equals zero, the scheduling policy and parameters of the calling thread will be set.
- * @param pid_t pid thread id
- * @param int policy equals specified policies in sched_setscheduler documentation
- * @param int priority between 1 and 99
- * @return on success 0 and on error -1
- */
- static int setRuntimeScheduler(const pid_t pid, const int policy, const int priority);
-#endif
};
-#ifdef WITH_REALTIME_SCHEDULER
-#define SET_REALTIME_SCHEDULER()\
- if ( CAmSocketHandler::setRuntimeScheduler(0, AM_REALTIME_POLICY, AM_PROCESS_PRIORITY) != 0 )\
- {\
- std::cerr <<"sched_setscheduler:"<<strerror(errno)<<std::endl;\
- std::cerr << "Try running as root"<<std::endl;\
- }
-#else
-#define SET_REALTIME_SCHEDULER()
-#endif
-
} /* namespace am */
#endif /* SOCKETHANDLER_H_ */