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

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

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

revision 1.2 by neal, Tue Nov 26 17:50:48 2002 UTC revision 1.3 by neal, Mon May 2 22:00:34 2005 UTC
# Line 1  Line 1 
1  /* Thread creation.  /* Thread creation.
2     Copyright (C) 2000, 2002 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 168  __pthread_create_internal (struct __pthr Line 168  __pthread_create_internal (struct __pthr
168       other thread should be using this entry (we also assume that the       other thread should be using this entry (we also assume that the
169       store is atomic).  */       store is atomic).  */
170    pthread_rwlock_rdlock (&__pthread_threads_lock);    pthread_rwlock_rdlock (&__pthread_threads_lock);
171    __pthread_threads[pthread->thread] = pthread;    __pthread_threads[pthread->thread - 1] = pthread;
172    pthread_rwlock_unlock (&__pthread_threads_lock);    pthread_rwlock_unlock (&__pthread_threads_lock);
173    
174    /* At this point it is possible to guess our pthread ID.  We have to    /* At this point it is possible to guess our pthread ID.  We have to

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