/[hurd]/hurd/libpthread/sysdeps/mach/pt-thread-alloc.c
ViewVC logotype

Diff of /hurd/libpthread/sysdeps/mach/pt-thread-alloc.c

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

revision 1.2 by neal, Mon Nov 18 22:20:58 2002 UTC revision 1.3 by neal, Wed May 4 16:04:06 2005 UTC
# Line 1  Line 1 
1  /* Start thread.  Mach version.  /* Start thread.  Mach version.
2     Copyright (C) 2000,02 Free Software Foundation, Inc.     Copyright (C) 2000, 2002, 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 50  create_wakeupmsg (struct __pthread *thre Line 50  create_wakeupmsg (struct __pthread *thre
50                                    MACH_MSG_TYPE_MAKE_SEND);                                    MACH_MSG_TYPE_MAKE_SEND);
51    if (err)    if (err)
52      {      {
53        __mach_port_deallocate (__mach_task_self (),        __mach_port_destroy (__mach_task_self (),
54                                thread->wakeupmsg.msgh_remote_port);                             thread->wakeupmsg.msgh_remote_port);
55        return EAGAIN;        return EAGAIN;
56      }      }
57    
# Line 86  __pthread_thread_alloc (struct __pthread Line 86  __pthread_thread_alloc (struct __pthread
86      {      {
87        assert (__pthread_total == 0);        assert (__pthread_total == 0);
88        thread->kernel_thread = __mach_thread_self ();        thread->kernel_thread = __mach_thread_self ();
89        /* We implicitly hold a reference.  */        /* We implicitly hold a reference drop the one that we just
90             acquired.  */
91        __mach_port_deallocate (__mach_task_self (), thread->kernel_thread);        __mach_port_deallocate (__mach_task_self (), thread->kernel_thread);
92      }      }
93    else    else

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

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