Allow faster termination if the 'observer' threads.

This commit is contained in:
LoRd_MuldeR 2011-11-19 02:57:30 +01:00
parent da42e76c25
commit 37cd023080
3 changed files with 12 additions and 3 deletions

View File

@ -127,7 +127,10 @@ void CPUObserverThread::observe(void)
} }
} }
} }
msleep(2000); for(int i = 0; i < 6; i++)
{
if(!m_terminated) msleep(333);
}
} }
} }
else else

View File

@ -88,7 +88,10 @@ void DiskObserverThread::observe(void)
previousSpace = freeSpace; previousSpace = freeSpace;
} }
} }
msleep(2000); for(int i = 0; i < 6; i++)
{
if(!m_terminated) msleep(333);
}
} }
} }

View File

@ -79,7 +79,10 @@ void RAMObserverThread::observe(void)
previous = current; previous = current;
} }
} }
msleep(2000); for(int i = 0; i < 6; i++)
{
if(!m_terminated) msleep(333);
}
} }
} }