summary refs log tree commit diff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-11-09 21:52:49 +0000
committerRoland McGrath <roland@gnu.org>2004-11-09 21:52:49 +0000
commitfd5d6a6294b0db3f2143d2735b78bffa284b4259 (patch)
treee4d2b7b0e42cce8a8bdb4dac37e6232b8e6b68c8 /nptl/pthread_create.c
parentd1e0c700244fd322cc0d11031d1007fd05e883f1 (diff)
downloadglibc-fd5d6a6294b0db3f2143d2735b78bffa284b4259.tar.gz
glibc-fd5d6a6294b0db3f2143d2735b78bffa284b4259.tar.xz
glibc-fd5d6a6294b0db3f2143d2735b78bffa284b4259.zip
[BZ #530]
2004-11-09  Roland McGrath  <roland@redhat.com>
	[BZ #530]
	* sysdeps/pthread/createthread.c (do_clone): Increment __nptl_nthreads
	here, before calling clone.
	* pthread_create.c (start_thread): Don't do it here.
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 7293f4c71c..82a3c683aa 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -222,9 +222,6 @@ __free_tcb (struct pthread *pd)
 static int
 start_thread (void *arg)
 {
-  /* One more thread.  */
-  atomic_increment (&__nptl_nthreads);
-
   struct pthread *pd = (struct pthread *) arg;
 
 #if HP_TIMING_AVAIL