projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e61b5e2
)
make a note about process lock and ARDOUR::how_many_dsp_threads()
author
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 9 Feb 2011 02:51:50 +0000
(
02:51
+0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Wed, 9 Feb 2011 02:51:50 +0000
(
02:51
+0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8794
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
libs/ardour/utils.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/utils.cc
b/libs/ardour/utils.cc
index b19aad4fa92785fea0739571bb21996109e48e97..2ea8b73dc262da227f7500b392d7f0f253e64246 100644
(file)
--- a/
libs/ardour/utils.cc
+++ b/
libs/ardour/utils.cc
@@
-657,6
+657,8
@@
matching_unsuffixed_filename_exists_in (const string& dir, const string& path)
uint32_t
how_many_dsp_threads ()
{
+ /* CALLER MUST HOLD PROCESS LOCK */
+
int num_cpu = hardware_concurrency();
int pu = Config->get_processor_usage ();
uint32_t num_threads = max (num_cpu - 1, 2); // default to number of cpus minus one, or 2, whichever is larger