mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Merge branch 'sink-io-threads' of https://github.com/rbx/FairRoot into rbx-sink-io-threads
This commit is contained in:
commit
d52d7d4ebc
|
@ -40,14 +40,6 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
int ioThreads;
|
|
||||||
|
|
||||||
options_description sink_options("Sink options");
|
|
||||||
sink_options.add_options()
|
|
||||||
("io-threads", value<int>(&ioThreads)->default_value(1), "Number of I/O threads");
|
|
||||||
|
|
||||||
config.AddToCmdLineOptions(sink_options);
|
|
||||||
|
|
||||||
if (config.ParseAll(argc, argv))
|
if (config.ParseAll(argc, argv))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -55,6 +47,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
string filename = config.GetValue<string>("config-json-file");
|
string filename = config.GetValue<string>("config-json-file");
|
||||||
string id = config.GetValue<string>("id");
|
string id = config.GetValue<string>("id");
|
||||||
|
int ioThreads = config.GetValue<int>("io-threads");
|
||||||
|
|
||||||
config.UserParser<JSON>(filename, id);
|
config.UserParser<JSON>(filename, id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user