pthread.h 782 字节
Newer Older
R
Rich Felker 已提交
1 2 3 4 5 6
struct __ptcb {
	long __jb[7];
	int __dummy;
	struct __ptcb *__next;
	void *__ptrs[3];
};
7 8 9

static inline void __pthread_register_cancel_2(struct __ptcb *__cb)
{
R
Rich Felker 已提交
10
	__asm__ __volatile__( "call __pthread_register_cancel" : : "a"(__cb) : "ecx", "edx", "memory" );
11 12 13 14
}

static inline void __pthread_unregister_cancel_2(struct __ptcb *__cb)
{
R
Rich Felker 已提交
15
	__asm__ __volatile__( "call __pthread_unregister_cancel" : : "a"(__cb) : "ecx", "edx", "memory" );
16 17 18 19
}

static inline void __pthread_unwind_next_2(struct __ptcb *__cb)
{
R
Rich Felker 已提交
20
	__asm__ __volatile__( "call __pthread_unwind_next" : : "a"(__cb) : "ecx", "edx", "memory" );
21 22 23 24 25
}

#define __pthread_register_cancel __pthread_register_cancel_2
#define __pthread_unregister_cancel __pthread_unregister_cancel_2
#define __pthread_unwind_next __pthread_unwind_next_2