Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2008 02:06:51 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libthr/thread thr_create.c thr_exit.c thr_sig.c
Message-ID:  <200803180206.m2I26pwt085040@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
davidxu     2008-03-18 02:06:51 UTC

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_create.c thr_exit.c thr_sig.c 
  Log:
  - Copy signal mask out before THR_UNLOCK(), because THR_UNLOCK() may call
    _thr_suspend_check() which messes sigmask saved in thread structure.
  - Don't suspend a thread has force_exit set.
  - In pthread_exit(), if there is a suspension flag set, wake up waiting-
    thread after setting PS_DEAD, this causes waiting-thread to break loop
    in suspend_common().
  
  Revision  Changes    Path
  1.42      +10 -4     src/lib/libthr/thread/thr_create.c
  1.26      +4 -0      src/lib/libthr/thread/thr_exit.c
  1.28      +3 -0      src/lib/libthr/thread/thr_sig.c



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