add: if (csetup_repp->raised_priority() == true) { if (kvu_set_thread_scheduling(SCHED_FIFO, csetup_repp->get_sched_priority()) != 0) ECA_LOG_MSG(ECA_LOGGER::system_objects, "(eca-engine) Unable to change scheduling policy!"); else ECA_LOG_MSG(ECA_LOGGER::info, "(eca-engine) Using realtime-scheduling (SCHED_FIFO)."); }
context: void ECA_ENGINE::prepare_operation(void){  // ---  DBC_REQUIRE(is_running() != true);  DBC_REQUIRE(is_prepared() != true);  // ---  /* 1. acquire rt-lock for chainsetup and samplebuffers */  csetup_repp->toggle_locked_state(true);  for(size_t n = 0; n < cslots_rep.size(); n++) {    cslots_rep[n]->set_rt_lock(true);  }  mixslot_repp->set_rt_lock(true);  /* 2. reinitialize chains if necessary */  for(size_t i = 0; i != chains_repp->size(); i++) {    if ((*chains_repp)[i]->is_initialized() != true) (*chains_repp)[i]->init(0, 0, 0);  }  /* 3. start subsystem servers */  start_servers();  /* 4. prepare rt objects */  prepare_realtime_objects();  /* ... initial offset is needed because preroll is    * incremented only after checking whether we are    * still in preroll mode */  preroll_samples_rep = buffersize();   /* 6. enable rt-scheduling */  if (csetup_repp->raised_priority() == true) {    if (kvu_set_thread_scheduling(SCHED_FIFO, csetup_repp->get_sched_priority()) != 0)      ECA_LOG_MSG(ECA_LOGGER::system_objects, "Unable to change scheduling policy!");    else      ECA_LOG_MSG(ECA_LOGGER::info, 		  std::string("Using realtime-scheduling (SCHED_FIFO:")		  + kvu_numtostr(csetup_repp->get_sched_priority()) + ").");  }  /* 7. change engine to active and running */  prepared_rep = true;  init_engine_state();  // ---  DBC_ENSURE(is_prepared() == true);  DBC_ENSURE(status() == ECA_ENGINE::engine_status_stopped);  // ---}