13
0

make a note about process lock and ARDOUR::how_many_dsp_threads()

git-svn-id: svn://localhost/ardour2/branches/3.0@8794 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-02-09 02:51:50 +00:00
parent e61b5e23c4
commit a2354db323

View File

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