Skip to content
Snippets Groups Projects
Commit 60479034 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

SharedEvtQueueProvider: fail if non-positive chunk size is requested

parent e9edcb23
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,11 @@ int SharedEvtQueueProvider::makePool(int maxevt, int nprocs, const std::string&
return -1;
}
if(m_nChunkSize<=0) {
ATH_MSG_ERROR( "Non-positive chunk size requested: " << m_nChunkSize);
return -1;
}
m_nEvtRequested = maxevt;
m_nprocs = (nprocs==-1?sysconf(_SC_NPROCESSORS_ONLN):nprocs);
m_nprocesses = m_nprocs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment