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