9 lines
121 B
C
9 lines
121 B
C
|
#define _GNU_SOURCE
|
||
|
#include <unistd.h>
|
||
|
#include "pthread_impl.h"
|
||
|
|
||
|
pid_t gettid(void)
|
||
|
{
|
||
|
return __pthread_self()->tid;
|
||
|
}
|