From f992f53d5d004791e8df3b5bf15111e43a148c61 Mon Sep 17 00:00:00 2001 From: hsc Date: Sun, 2 Sep 2012 10:17:00 +0000 Subject: [PATCH] spacing git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1585 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- src/core/cpn/JobServer.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/core/cpn/JobServer.cc b/src/core/cpn/JobServer.cc index 4d2b024b..44fb334c 100644 --- a/src/core/cpn/JobServer.cc +++ b/src/core/cpn/JobServer.cc @@ -153,7 +153,7 @@ void JobServer::run() // TODO: Log-level? #ifndef __puma boost::thread* th; - while(!m_finish){ + while (!m_finish){ // Accept connection int cs = accept(s, (struct sockaddr*)&clientaddr, &clen); if (cs == -1) { @@ -169,12 +169,11 @@ void JobServer::run() // removing finished threads. do { m_threadlist.remove_if(timed_join_successful(m_threadtimeout)); - } while(m_threadlist.size() == m_maxThreads); + } while (m_threadlist.size() == m_maxThreads); } - // Start new thread - th = new boost::thread(CommThread(cs, *this)); - m_threadlist.push_back(th); - + // Start new thread + th = new boost::thread(CommThread(cs, *this)); + m_threadlist.push_back(th); } close(s); // when all undone Jobs are distributed -> call a timed_join on all spawned