Permalink
Browse files

WorldTaskQueue::add now avoids ndep==0 case ... seems to cause a race…

… somehow???
  • Loading branch information...
evaleev committed Nov 13, 2017
1 parent d56b467 commit 21d2b38d49d41cacc16a72ca9da3d7bb422b2073
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/madness/world/world_task_queue.h
@@ -450,13 +450,14 @@ namespace madness {
t->set_info(&world, this); // Stuff info
if (t->ndep() == 0) {
ThreadPool::add(t); // If no dependencies directly submit
} else {
// using t->ndep() may not be safe?
//if (t->ndep() == 0) {
// ThreadPool::add(t); // If no dependencies directly submit
//} else {
// With dependencies must use the callback to avoid race condition
t->register_submit_callback();
//t->dec();
}
//}
}
/// \todo Brief description needed.

0 comments on commit 21d2b38

Please sign in to comment.