From b00694e94af2d63edd47076dbfdc21bac0dd3a44 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 7 Sep 2013 15:32:13 +0100 Subject: [PATCH] Remove carla_setprocname() call from utils --- source/utils/CarlaUtils.hpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/source/utils/CarlaUtils.hpp b/source/utils/CarlaUtils.hpp index eac2ab4ac..645325dbc 100644 --- a/source/utils/CarlaUtils.hpp +++ b/source/utils/CarlaUtils.hpp @@ -32,17 +32,6 @@ # include #endif -#if defined(CARLA_OS_HAIKU) -# include -#else -# if (__GLIBC__ * 1000 + __GLIBC_MINOR__) >= 2012 -# include -# elif defined(CARLA_OS_LINUX) -# include -# include -# endif -#endif - // ----------------------------------------------------------------------- // misc functions @@ -168,31 +157,6 @@ void carla_setenv(const char* const key, const char* const value) #endif } -// ----------------------------------------------------------------------- -// carla_setprocname (not available on all platforms) - -static inline -void carla_setprocname(const char* const name) -{ - CARLA_SAFE_ASSERT_RETURN(name != nullptr,); - -#if defined(CARLA_OS_HAIKU) - if ((thread_id this_thread = find_thread(nullptr)) != B_NAME_NOT_FOUND) - rename_thread(this_thread, name); - return; -#else -# if (__GLIBC__ * 1000 + __GLIBC_MINOR__) >= 2012 - pthread_setname_np(pthread_self(), name); - return; -# elif defined(CARLA_OS_LINUX) - prctl(PR_SET_NAME, name); - return; -# endif -#endif - - carla_stderr("carla_setprocname(\"%s\") - unsupported on this platform", name); -} - // ----------------------------------------------------------------------- // carla_strdup