void idle_detect::on_timer_timeout() { s.clear(); idle.start(); idle.waitForReadyRead(1000); s=idle.readAll(); time=s.toLong(); if(time>threshold) { emit idled(); } }
/* * SMP entry into the idle task - calls the same thing as the * non-smp versions. -- Cort */ int cpu_idle(void) { idled(); return 0; }