/[hurd]/hurd/libpthread/pthread/pt-detach.c
ViewVC logotype

Diff of /hurd/libpthread/pthread/pt-detach.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by neal, Thu Oct 10 23:05:06 2002 UTC revision 1.2 by neal, Wed May 4 16:04:06 2005 UTC
# Line 1  Line 1 
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
# Line 58  pthread_detach (pthread_t thread) Line 58  pthread_detach (pthread_t thread)
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;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26