[BACK]Return to pthread.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libpthread

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libpthread/pthread.c between version 1.173 and 1.174

version 1.173, 2020/06/03 22:10:24 version 1.174, 2020/06/04 00:45:32
Line 66  __RCSID("$NetBSD$");
Line 66  __RCSID("$NetBSD$");
 #include "pthread_makelwp.h"  #include "pthread_makelwp.h"
 #include "reentrant.h"  #include "reentrant.h"
   
   __BEGIN_DECLS
   void _malloc_thread_cleanup(void) __weak;
   __END_DECLS
   
 pthread_rwlock_t pthread__alltree_lock = PTHREAD_RWLOCK_INITIALIZER;  pthread_rwlock_t pthread__alltree_lock = PTHREAD_RWLOCK_INITIALIZER;
 static rb_tree_t        pthread__alltree;  static rb_tree_t        pthread__alltree;
   
Line 677  pthread_exit(void *retval)
Line 681  pthread_exit(void *retval)
         /* Perform cleanup of thread-specific data */          /* Perform cleanup of thread-specific data */
         pthread__destroy_tsd(self);          pthread__destroy_tsd(self);
   
           if (_malloc_thread_cleanup)
                   _malloc_thread_cleanup();
   
         /*          /*
          * Signal our exit.  Our stack and pthread_t won't be reused until           * Signal our exit.  Our stack and pthread_t won't be reused until
          * pthread_create() can see from kernel info that this LWP is gone.           * pthread_create() can see from kernel info that this LWP is gone.

Legend:
Removed from v.1.173  
changed lines
  Added in v.1.174

CVSweb <webmaster@jp.NetBSD.org>