Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Aug 30, 2024
1 parent ffce22b commit 0c5525d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/threading/scheduler/Scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "Scheduler.hpp"

#include <algorithm>
#include <stdexcept>

#include "../../dsl/word/MainThread.hpp"
#include "../../dsl/word/Pool.hpp"
Expand Down Expand Up @@ -116,7 +117,8 @@ namespace threading {
if (pools.count(desc) == 0) {
// Don't make new pools if we are shutting down
if (!running.load(std::memory_order_acquire)) {
throw std::runtime_error("Cannot create new pools after the scheduler has started shutting down");
throw std::invalid_argument(
"Cannot create new pools after the scheduler has started shutting down");
}

// Create the pool
Expand Down

0 comments on commit 0c5525d

Please sign in to comment.