Skip to content

Commit

Permalink
Try to improve C++ parallelization
Browse files Browse the repository at this point in the history
  • Loading branch information
favu100 committed Oct 26, 2024
1 parent 2dd4fac commit f790273
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/resources/de/hhu/stups/codegenerator/CppTemplate.stg
Original file line number Diff line number Diff line change
Expand Up @@ -1685,12 +1685,9 @@ void modelCheckMultiThreaded(boost::asio::thread_pool& workers) {
possibleQueueChanges -= 1;
int running = possibleQueueChanges;
{
std::unique_lock\<std::mutex> lock(mutex);
std::unique_lock\<std::mutex> lock(waitMutex);
if (!unvisitedStates.empty() || running == 0) {
{
std::unique_lock\<std::mutex> lock(waitMutex);
waitCV.notify_all();
}
waitCV.notify_all();
}
}

Expand Down

0 comments on commit f790273

Please sign in to comment.