aboutsummaryrefslogtreecommitdiff
path: root/src/common/threadpool.h
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2017-09-15 00:28:48 +0100
committerHoward Chu <hyc@symas.com>2017-09-15 00:28:48 +0100
commit6d0ca7d11f18d1d842ec1ac639da4309ae41a83f (patch)
tree756c8c666df79b0f15dba3f0bac15505453966e9 /src/common/threadpool.h
parentUse a threadpool (diff)
downloadmonero-6d0ca7d11f18d1d842ec1ac639da4309ae41a83f.tar.xz
Tweak concurrency limits
Create capacity for 2x max, but lie about it
Diffstat (limited to 'src/common/threadpool.h')
-rw-r--r--src/common/threadpool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/threadpool.h b/src/common/threadpool.h
index 9455e9f66..1d56d7605 100644
--- a/src/common/threadpool.h
+++ b/src/common/threadpool.h
@@ -65,7 +65,7 @@ public:
// task to finish.
void submit(waiter *waiter, std::function<void()> f);
- int get_max_concurrency() { return max; }
+ int get_max_concurrency();
private:
threadpool();