2 * Copyright 2012 (C) Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * SPDX-License-Identifier: MIT
15 #if defined(__NR_gettid)
18 static inline pid_t
lttng_gettid(void)
20 return syscall(__NR_gettid
);
25 #include <sys/types.h>
28 /* Fall-back on getpid for tid if not available. */
29 static inline pid_t
lttng_gettid(void)
36 #endif /* LTTNG_TID_H */
This page took 0.031926 seconds and 5 git commands to generate.