2 * Copyright (C) 2020 Michael Jeanson <mjeanson@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 #ifndef _COMPAT_PTHREAD_H
9 #define _COMPAT_PTHREAD_H
14 #if defined(HAVE_PTHREAD_SETNAME_NP_WITH_TID)
16 int lttng_pthread_setname_np(const char *name
)
18 return pthread_setname_np(pthread_self(), name
);
20 #elif defined(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID)
22 int lttng_pthread_setname_np(const char *name
)
24 return pthread_setname_np(name
);
28 * For platforms without thread name support, do nothing.
31 int lttng_pthread_setname_np(const char *name
)
37 #endif /* _COMPAT_PTHREAD_H */
This page took 0.03084 seconds and 4 git commands to generate.