1 |
/* Detach a thread. |
/* Detach a thread. |
2 |
Copyright (C) 2000 Free Software Foundation, Inc. |
Copyright (C) 2000, 2005 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 |
58 |
|
|
59 |
__pthread_mutex_unlock (&pthread->state_lock); |
__pthread_mutex_unlock (&pthread->state_lock); |
60 |
|
|
|
__pthread_thread_halt (pthread); |
|
|
|
|
61 |
assert (pthread->stack); |
assert (pthread->stack); |
62 |
__pthread_stack_dealloc (pthread->stackaddr, pthread->stacksize); |
__pthread_stack_dealloc (pthread->stackaddr, pthread->stacksize); |
63 |
pthread->stack = 0; |
pthread->stack = 0; |