Skip to content
Snippets Groups Projects
Commit 1aedf36b authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #5883: Fixed race condition when stopping MPIPoll

parent b96474be
No related branches found
No related tags found
No related merge requests found
......@@ -90,10 +90,14 @@ namespace LOFAR {
void MPIPoll::stop() {
DEBUG("MPIPoll::stop");
done = true;
{
ScopedLock sl(mutex);
// Unlock thread if it is waiting for a new request
newRequest.signal();
done = true;
// Unlock thread if it is waiting for a new request
newRequest.signal();
}
// Wait for thread to finish
thread = 0;
......
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