linux important bugfix and general improvements #101

Merged
gaisser merged 8 commits from KSat/fsfw:mueller_Linux_Bugfix into master 2020-06-23 20:28:14 +02:00
Showing only changes of commit bf1b86e809 - Show all commits

View File

@ -60,10 +60,6 @@ void PosixThread::resume(){
pthread_kill(thread,SIGUSR1);
}
bool PosixThread::delayUntil(uint64_t* const prevoiusWakeTime_ms,
const uint64_t delayTime_ms) {
uint64_t nextTimeToWake_ms;
@ -163,7 +159,7 @@ void PosixThread::createTask(void* (*fnc_)(void*), void* arg_) {
strerror(status) << std::endl;
}
//TODO FIFO -> This needs root privileges for the process
// TODO FIFO -> This needs root privileges for the process
status = pthread_attr_setschedpolicy(&attributes,SCHED_FIFO);
if(status != 0){
sif::error << "Posix Thread attribute schedule policy failed with: " <<
@ -209,7 +205,6 @@ void PosixThread::createTask(void* (*fnc_)(void*), void* arg_) {
" did not work.." << std::endl;
}
}
}
status = pthread_attr_destroy(&attributes);