Commit cd72e6dc authored by Matthias Vallentin's avatar Matthias Vallentin

Increase minimum number of worker threads to 4.

This addresses issues with hanging programs when one blocking actor
waits on the result of another.
parent 94c5ef19
...@@ -41,7 +41,7 @@ class coordinator : public abstract_coordinator { ...@@ -41,7 +41,7 @@ class coordinator : public abstract_coordinator {
using policy_data = typename Policy::coordinator_data; using policy_data = typename Policy::coordinator_data;
coordinator(size_t nw = std::thread::hardware_concurrency(), coordinator(size_t nw = std::max(std::thread::hardware_concurrency(), 4u),
size_t mt = std::numeric_limits<size_t>::max()) size_t mt = std::numeric_limits<size_t>::max())
: super(nw), : super(nw),
m_max_throughput(mt) { m_max_throughput(mt) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment