From: <ro...@sy...> - 2012-02-26 17:10:47
|
Author: Diego Barrios Romero <el...@el...> Date: Sun Feb 26 18:03:28 2012 +0100 threads option --- synfig-core/src/tool/main.cpp | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/synfig-core/src/tool/main.cpp b/synfig-core/src/tool/main.cpp index 26ea97c..21e7220 100644 --- a/synfig-core/src/tool/main.cpp +++ b/synfig-core/src/tool/main.cpp @@ -528,6 +528,8 @@ int main(int ac, char* av[]) // Processing options -------------------------------------------------- string target_name; + int threads; + // Common input file loading if (vm.count("input-file")) { @@ -547,6 +549,14 @@ int main(int ac, char* av[]) target_name = vm["target"].as<string>(); } + + if (vm.count("threads")) + threads = vm["threads"].as<int>(); + else + threads = 1; + + VERBOSE_OUT(1) << _("Threads set to ") << threads << endl; + // WARNING: canvas must be before append if (vm.count("canvas")) |