bounded job queue (configurable, unbounded by default)

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1945 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-11-20 15:01:58 +00:00
parent a26a155f0c
commit 127161ef5a
3 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,7 @@ private:
public:
JobServer(int port = SERVER_COMM_TCP_PORT) : m_port(port), m_finish(false), m_noMoreExps(false),
m_maxThreads(128), m_threadtimeout(0)
m_maxThreads(128), m_threadtimeout(0), m_undoneJobs(SERVER_OUT_QUEUE_SIZE)
{
m_runid = std::time(0);
#ifndef __puma