mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
fix indentation
This commit is contained in:
@@ -292,12 +292,14 @@ void ThreadTest::testTrySleep()
|
||||
Thread::sleep(100);
|
||||
assert(r.counter() == 0);
|
||||
assert(r.isSleepy());
|
||||
thread.wakeUp(); Thread::sleep(10);
|
||||
thread.wakeUp();
|
||||
Thread::sleep(10);
|
||||
assert(r.counter() == 1);
|
||||
assert(r.isSleepy());
|
||||
Thread::sleep(100);
|
||||
assert(r.counter() == 1);
|
||||
thread.wakeUp(); Thread::sleep(10);
|
||||
thread.wakeUp();
|
||||
Thread::sleep(10);
|
||||
assert(r.counter() == 2);
|
||||
assert(r.isSleepy());
|
||||
Thread::sleep(200);
|
||||
@@ -393,7 +395,10 @@ void ThreadTest::testThreadFunctor()
|
||||
assert (!thread2.isRunning());
|
||||
|
||||
MyRunnable::_staticVar = 0;
|
||||
thread.startFunc([] () {MyRunnable::_staticVar++;});
|
||||
thread.startFunc([] ()
|
||||
{
|
||||
MyRunnable::_staticVar++;
|
||||
});
|
||||
thread.join();
|
||||
assert (1 == MyRunnable::_staticVar);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user