1
0
Fork 0

Fixing stuff

This commit is contained in:
Simon Grätzer 2017-02-03 11:57:06 +01:00
parent 58ec9033f4
commit fd0696d1cf
1 changed files with 6 additions and 4 deletions

View File

@ -411,10 +411,12 @@ bool Worker<V, E, M>::_processVertices(
// called at the end of a worker thread, needs mutex
template <typename V, typename E, typename M>
void Worker<V, E, M>::_finishedProcessing() {
MUTEX_LOCKER(guard, _threadMutex);
if (_runningThreads != 0) {
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL,
"only one thread should ever enter this region");
{
MUTEX_LOCKER(guard, _threadMutex);
if (_runningThreads != 0) {
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_INTERNAL,
"only one thread should ever enter this region");
}
}
VPackBuilder package;