Browse Source

Remove carla_setprocname() call from utils

tags/1.9.4
falkTX 11 years ago
parent
commit
b00694e94a
1 changed files with 0 additions and 36 deletions
  1. +0
    -36
      source/utils/CarlaUtils.hpp

+ 0
- 36
source/utils/CarlaUtils.hpp View File

@@ -32,17 +32,6 @@
# include <stdint.h>
#endif

#if defined(CARLA_OS_HAIKU)
# include <kernel/OS.h>
#else
# if (__GLIBC__ * 1000 + __GLIBC_MINOR__) >= 2012
# include <pthread.h>
# elif defined(CARLA_OS_LINUX)
# include <sys/prctl.h>
# include <linux/prctl.h>
# 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



Loading…
Cancel
Save