Clean-up: modernize pretty_xml.cpp
[lttng-tools.git] / src / common / compat / pthread.h
diff --git a/src/common/compat/pthread.h b/src/common/compat/pthread.h
deleted file mode 100644 (file)
index 4d3f9c7..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com>
- *
- * SPDX-License-Identifier: GPL-2.0-only
- *
- */
-
-#ifndef _COMPAT_PTHREAD_H
-#define _COMPAT_PTHREAD_H
-
-#include <pthread.h>
-#include <errno.h>
-
-#if defined(HAVE_PTHREAD_SETNAME_NP_WITH_TID)
-static inline
-int lttng_pthread_setname_np(const char *name)
-{
-       return pthread_setname_np(pthread_self(), name);
-}
-#elif defined(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID)
-static inline
-int lttng_pthread_setname_np(const char *name)
-{
-       return pthread_setname_np(name);
-}
-#else
-/*
- * For platforms without thread name support, do nothing.
- */
-static inline
-int lttng_pthread_setname_np(const char *name)
-{
-       return -ENOSYS;
-}
-#endif
-
-#endif /* _COMPAT_PTHREAD_H */
This page took 0.023663 seconds and 4 git commands to generate.