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/daemon/command_line_args.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/daemon/command_line_args.h')
-rw-r--r-- | src/daemon/command_line_args.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/command_line_args.h b/src/daemon/command_line_args.h index 2dca5e3e7..1fe2ddcf6 100644 --- a/src/daemon/command_line_args.h +++ b/src/daemon/command_line_args.h @@ -59,6 +59,11 @@ namespace daemon_args "os-version" , "OS for which this executable was compiled" }; + const command_line::arg_descriptor<unsigned> arg_max_concurrency = { + "max-concurrency" + , "Max number of threads to use for a parallel job" + , 0 + }; } // namespace daemon_args #endif // DAEMON_COMMAND_LINE_ARGS_H |