fix indentation

This commit is contained in:
ale_bychuk
2015-03-08 22:54:45 +03:00
parent 3af35f548c
commit a0e172419f
8 changed files with 1212 additions and 1207 deletions

View File

@@ -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);
@@ -421,11 +426,11 @@ void ThreadTest::testThreadStackSize()
thread.setStackSize(stackSize);
#if !defined(POCO_OS_FAMILY_BSD) // on BSD family, stack size is rounded
#ifdef PTHREAD_STACK_MIN
#ifdef PTHREAD_STACK_MIN
assert (PTHREAD_STACK_MIN == thread.getStackSize());
#else
#else
assert (stackSize >= thread.getStackSize());
#endif
#endif
#endif
tmp = MyRunnable::_staticVar;
@@ -456,10 +461,10 @@ void ThreadTest::testAffinity()
unsigned cpuCount = Poco::Environment::processorCount();
unsigned usedCpu = 0;
bool notImplemented = false;
std::vector<Thread *> threadList;
Thread *thread = NULL;
std::vector<MyRunnable *> runnableList;
MyRunnable *runbl = NULL;
std::vector<Thread*> threadList;
Thread* thread = NULL;
std::vector<MyRunnable*> runnableList;
MyRunnable* runbl = NULL;
for (unsigned i = 0; i < cpuCount; i++)
{
@@ -483,7 +488,7 @@ void ThreadTest::testAffinity()
{
threadList[i]->setAffinity(i);
}
catch (Poco::NotImplementedException &niex)
catch (Poco::NotImplementedException& niex)
{
notImplemented = true;
}
@@ -492,7 +497,7 @@ void ThreadTest::testAffinity()
{
usedCpu = threadList[i]->getAffinity();
}
catch (Poco::NotImplementedException &niex)
catch (Poco::NotImplementedException& niex)
{
notImplemented = true;
}