diff options
author | David Robillard <d@drobilla.net> | 2016-09-12 22:37:22 +0800 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-01 12:25:43 -0400 |
commit | fed7aaf0901e1b26dcc2bbb222f67b11f6b9d291 (patch) | |
tree | 8ae07a75439481109da586b211c4da85fca8730b /src/Configuration.cpp | |
parent | 11b55676a510171a56975743fd752ccbcc170622 (diff) | |
download | ingen-fed7aaf0901e1b26dcc2bbb222f67b11f6b9d291.tar.gz ingen-fed7aaf0901e1b26dcc2bbb222f67b11f6b9d291.tar.bz2 ingen-fed7aaf0901e1b26dcc2bbb222f67b11f6b9d291.zip |
Add parallel graph execution
Diffstat (limited to 'src/Configuration.cpp')
-rw-r--r-- | src/Configuration.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 13e2d722..e165118f 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -1,6 +1,6 @@ /* This file is part of Ingen. - Copyright 2007-2015 David Robillard <http://drobilla.net/> + Copyright 2007-2016 David Robillard <http://drobilla.net/> Ingen is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free @@ -19,6 +19,7 @@ #include <string.h> #include <iostream> +#include <thread> #include <glibmm/fileutils.h> #include <glibmm/miscutils.h> @@ -66,8 +67,9 @@ Configuration::Configuration(Forge& forge) add("path", "path", 'L', "Target path for loaded graph", SESSION, forge.String, Atom()); add("queueSize", "queue-size", 'q', "Event queue size", GLOBAL, forge.Int, forge.make(4096)); add("flushLog", "flush-log", 'f', "Flush logs after every entry", GLOBAL, forge.Bool, forge.make(false)); - add("dump", "dump", 'd', "Print debug output", GLOBAL, forge.Bool, forge.make(false)); - add("trace", "trace", 't', "Show LV2 plugin trace messages", GLOBAL, forge.Bool, forge.make(false)); + add("dump", "dump", 'd', "Print debug output", SESSION, forge.Bool, forge.make(false)); + add("trace", "trace", 't', "Show LV2 plugin trace messages", SESSION, forge.Bool, forge.make(false)); + add("threads", "threads", 'p', "Number of processing threads", GLOBAL, forge.Int, forge.make(int32_t(std::max(std::thread::hardware_concurrency(), 1U)))); add("humanNames", "human-names", 0, "Show human names in GUI", GUI, forge.Bool, forge.make(true)); add("portLabels", "port-labels", 0, "Show port labels in GUI", GUI, forge.Bool, forge.make(true)); add("graphDirectory", "graph-directory", 0, "Default directory for opening graphs", GUI, forge.String, Atom()); |