TimerPool fixoutManipulator
git-svn-id: svn://db.shs.com.ru/pip@72 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -330,9 +330,11 @@ void _PITimerImp_Pool::Pool::remove(_PITimerImp_Pool * t) {
|
||||
void _PITimerImp_Pool::Pool::run() {
|
||||
piForeach (_PITimerImp_Pool * t, timers)
|
||||
t->threadFunc();
|
||||
piForeach (_PITimerImp_Pool * t, to_remove)
|
||||
timers.removeOne(t);
|
||||
to_remove.clear();
|
||||
if (!to_remove.isEmpty()) {
|
||||
piForeach (_PITimerImp_Pool * t, to_remove)
|
||||
timers.removeOne(t);
|
||||
to_remove.clear();
|
||||
}
|
||||
//while (t->threadFunc());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user