summaryrefslogtreecommitdiff
path: root/libs/pbd/cpus.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-07-26 16:44:29 +0200
committerRobin Gareus <robin@gareus.org>2019-07-26 16:44:29 +0200
commit78fc6d66516861e4ff0b98671c04aa182f5a5b6a (patch)
tree5bdb140221b375fd9ced04dd6b99be6f846af796 /libs/pbd/cpus.cc
parentb759fb883ea17e87ec533e866916416fa44d9c9e (diff)
Prefix all env variable with "ARDOUR_"
In particular "CONCURRENCY" can be problematic. But in general it's good practice to use a namespace prefix for app-specifics.
Diffstat (limited to 'libs/pbd/cpus.cc')
-rw-r--r--libs/pbd/cpus.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/cpus.cc b/libs/pbd/cpus.cc
index af58221a1f..b52be1ccff 100644
--- a/libs/pbd/cpus.cc
+++ b/libs/pbd/cpus.cc
@@ -43,8 +43,8 @@
uint32_t
hardware_concurrency()
{
- if (getenv("CONCURRENCY")) {
- int c = atoi (getenv("CONCURRENCY"));
+ if (getenv("ARDOUR_CONCURRENCY")) {
+ int c = atoi (getenv("ARDOUR_CONCURRENCY"));
if (c > 0) {
return c;
}