Merge branch 'sink-io-threads' of https://github.com/rbx/FairRoot into rbx-sink-io-threads

This commit is contained in:
Mohammad Al-Turany 2015-11-02 19:54:36 +01:00
commit d52d7d4ebc

View File

@ -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);