Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Oct 2005 06:55:46 +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/sys/sys umtx.h src/sys/kern kern_thr.c kern_umtx.c
Message-ID:  <200510260655.j9Q6tkeI090414@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
davidxu     2005-10-26 06:55:46 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              umtx.h 
    sys/kern             kern_thr.c kern_umtx.c 
  Log:
  do umtx_wake at userland thread exit address, so that others userland
  threads can wait for a thread to exit, and safely assume that the thread
  has left userland and is no longer using its userland stack, this is
  necessary for pthread_join when a thread is waiting for another thread
  to exit which has user customized stack, after pthread_join returns,
  the userland stack can be reused for other purposes, without this change,
  the joiner thread has to spin at the address to ensure the thread is really
  exited.
  
  Revision  Changes    Path
  1.36      +5 -1      src/sys/kern/kern_thr.c
  1.34      +3 -3      src/sys/kern/kern_umtx.c
  1.17      +2 -0      src/sys/sys/umtx.h



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