Bug 414997: added a comment.
authorwtc%google.com
Thu, 31 Jan 2008 20:00:58 +0000
changeset 3928 827eae668efe723e25d9b72078955daf3a708dc5
parent 3927 880f331e71c580a4b99e75319dc435581c5ae5a3
child 3929 21de2307a05c5e7ac3e175ffcdd8b618bb5d42e5
push idunknown
push userunknown
push dateunknown
bugs414997
Bug 414997: added a comment.
pr/src/pthreads/ptthread.c
--- a/pr/src/pthreads/ptthread.c
+++ b/pr/src/pthreads/ptthread.c
@@ -594,16 +594,20 @@ PR_IMPLEMENT(PRStatus) PR_JoinThread(PRT
         rv = pthread_join(id, &result);
         PR_ASSERT(rv == 0 && result == NULL);
         if (0 == rv)
         {
 #ifdef _PR_DCETHREADS
             rv = pthread_detach(&id);
             PR_ASSERT(0 == rv);
 #endif
+            /*
+             * PR_FALSE, because the thread already called the TPD
+             * destructors before exiting _pt_root.
+             */
             _pt_thread_death_internal(thred, PR_FALSE);
         }
         else
         {
             PRErrorCode prerror;
             switch (rv)
             {
                 case EINVAL:  /* not a joinable thread */