Commit e2cb0a90 authored by frtabu's avatar frtabu

ne cpu measurment implementation

parent 40fcd549
......@@ -191,6 +191,17 @@ void run_cpumeasur(void) {
}
void run_cpumeasur(void) {
struct sched_param schedp;
pthread_setname_np(pthread_self(), "measur");
schedp.sched_priority=0;
int rt=pthread_setschedparam(pthread_self(), SCHED_IDLE, &schedp);
AssertFatal(rt==0, "couldn't set measur thread priority: %s\n",strerror(errno));
initNotifiedFIFO(&measur_fifo);
while(1) {
}
}
void init_meas(void)
{
pthread_t thid;
......
Markdown is supported
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