diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-04-28 20:25:33 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-04-28 20:33:59 +0100 |
commit | 513a658c87b5fa23533a6b6db36e6d36af6a861d (patch) | |
tree | aca5ae90aec55ec7495d3f5faa9c6b3904b279c6 /src/common/util.h | |
parent | Merge pull request #823 (diff) | |
download | monero-513a658c87b5fa23533a6b6db36e6d36af6a861d.tar.xz |
add a --max-concurrency flag
It sets the max number of threads to use for a parallel job.
This is different that the number of total threads, since monero
binaries typically start a lot of them.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index ed1c16cb0..4fcf66b8f 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -160,4 +160,7 @@ namespace tools }; void set_strict_default_file_permissions(bool strict); + + void set_max_concurrency(unsigned n); + unsigned get_max_concurrency(); } |