Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Sep 2003 15:52:17 -0700 (PDT)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libpthread/thread thr_create.c thr_exit.c thr_kern.c thr_private.h
Message-ID:  <200309142252.h8EMqIlL034177@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
davidxu     2003/09/14 15:52:17 PDT

  FreeBSD src repository

  Modified files:
    lib/libpthread/thread thr_create.c thr_exit.c thr_kern.c 
                          thr_private.h 
  Log:
  1. Allocating and freeing lock related resource in _thr_alloc and _thr_free
     to avoid potential memory leak, also fix a bug in pthread_create, contention
     scope should be inherited when PTHREAD_INHERIT_SCHED is set, and also check
     right field for PTHREAD_INHERIT_SCHED, scheduling inherit flag is in sched_inherit.
  2. Execute hooks registered by atexit() on thread stack but not on scheduler
     stack.
  3. Simplify some code in _kse_single_thread by calling xxx_destroy functions.
  
  Reviewed by: deischen
  
  Revision  Changes    Path
  1.51      +20 -18    src/lib/libpthread/thread/thr_create.c
  1.35      +21 -3     src/lib/libpthread/thread/thr_exit.c
  1.94      +44 -73    src/lib/libpthread/thread/thr_kern.c
  1.102     +2 -0      src/lib/libpthread/thread/thr_private.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309142252.h8EMqIlL034177>