pthread_arch.h 194 字节
Newer Older
1 2 3
static inline struct pthread *__pthread_self()
{
	struct pthread *self;
4
	__asm__ __volatile__ ("movq %%fs:0,%0" : "=r" (self) );
5 6
	return self;
}
7

8 9
#define TP_ADJ(p) (p)

R
Rich Felker 已提交
10
#define CANCEL_REG_IP 16