Browse Source

Fix last commit

tags/1.9.4
falkTX 10 years ago
parent
commit
5078e8abce
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      source/utils/CarlaThread.hpp

+ 1
- 3
source/utils/CarlaThread.hpp View File

@@ -182,8 +182,7 @@ public:
CARLA_SAFE_ASSERT_RETURN(name != nullptr && name[0] != '\0',);

#if defined(__GLIBC__) && (__GLIBC__ * 1000 + __GLIBC_MINOR__) >= 2012
if (fName.isNotEmpty())
pthread_setname_np(pthread_self(), fName);
pthread_setname_np(pthread_self(), name);
#elif defined(CARLA_OS_LINUX)
prctl(PR_SET_NAME, name, 0, 0, 0);
#endif
@@ -224,7 +223,6 @@ private:
return nullptr;
}

CARLA_PREVENT_HEAP_ALLOCATION
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaThread)
};



Loading…
Cancel
Save