1 |
/* Internal defenitions for pthreads library. |
/* Internal defenitions for pthreads library. |
2 |
Copyright (C) 2000 Free Software Foundation, Inc. |
Copyright (C) 2000, 2002 Free Software Foundation, Inc. |
3 |
This file is part of the GNU C Library. |
This file is part of the GNU C Library. |
4 |
|
|
5 |
The GNU C Library is free software; you can redistribute it and/or |
The GNU C Library is free software; you can redistribute it and/or |
45 |
__hurd_threadvar_location (_HURD_THREADVAR_THREAD); \ |
__hurd_threadvar_location (_HURD_THREADVAR_THREAD); \ |
46 |
\ |
\ |
47 |
assert (thread); \ |
assert (thread); \ |
48 |
assert (thread->kernel_thread == __mach_thread_self ()); \ |
assert (({ mach_port_t ktid = __mach_thread_self (); \ |
49 |
|
int ok = thread->kernel_thread == ktid; \ |
50 |
|
__mach_port_deallocate (__mach_task_self (), ktid);\ |
51 |
|
ok; })); \ |
52 |
thread; \ |
thread; \ |
53 |
}) |
}) |
54 |
|
|