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:
parent
e61b5e23c4
commit
a2354db323
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user