comparison UnitTestsSources/MultiThreadingTests.cpp @ 1304:7b6925b0890d

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Feb 2015 17:03:17 +0100
parents 6e7e5ed91c2d
children ac4efabeb80c
comparison
equal deleted inserted replaced
1303:bba8a47922d1 1304:7b6925b0890d
289 289
290 virtual bool Apply(ListOfStrings& outputs, 290 virtual bool Apply(ListOfStrings& outputs,
291 const ListOfStrings& inputs) 291 const ListOfStrings& inputs)
292 { 292 {
293 for (ListOfStrings::const_iterator 293 for (ListOfStrings::const_iterator
294 it = inputs.begin(); it != inputs.end(); it++) 294 it = inputs.begin(); it != inputs.end(); ++it)
295 { 295 {
296 int a = boost::lexical_cast<int>(*it); 296 int a = boost::lexical_cast<int>(*it);
297 int b = factor_ * a; 297 int b = factor_ * a;
298 298
299 printf("%d * %d = %d\n", a, factor_, b); 299 printf("%d * %d = %d\n", a, factor_, b);
316 316
317 while (!(*done)) 317 while (!(*done))
318 { 318 {
319 ListOfStrings l; 319 ListOfStrings l;
320 s->GetListOfJobs(l); 320 s->GetListOfJobs(l);
321 for (ListOfStrings::iterator i = l.begin(); i != l.end(); i++) 321 for (ListOfStrings::iterator it = l.begin(); it != l.end(); ++it)
322 printf(">> %s: %0.1f\n", i->c_str(), 100.0f * s->GetProgress(*i)); 322 {
323 printf(">> %s: %0.1f\n", it->c_str(), 100.0f * s->GetProgress(*it));
324 }
323 Toolbox::USleep(10000); 325 Toolbox::USleep(10000);
324 } 326 }
325 } 327 }
326 328
327 329