Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Sep 2010 03:11:21 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libthr/thread thr_fork.c thr_init.c thr_mutex.c thr_private.h thr_umtx.c thr_umtx.h
Message-ID:  <201009010311.o813BdI0088120@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
davidxu     2010-09-01 03:11:21 UTC

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_fork.c thr_init.c thr_mutex.c 
                         thr_private.h thr_umtx.c thr_umtx.h 
  Log:
  SVN rev 212077 on 2010-09-01 03:11:21Z by davidxu
  
  Change atfork lock from mutex to rwlock, also make mutexes used by malloc()
  module private type, when private type mutex is locked/unlocked, thread
  critical region is entered or leaved. These changes makes fork()
  async-signal safe which required by POSIX. Note that user's atfork handler
  still needs to be async-signal safe, but it is not problem of libthr, it
  is user's responsiblity.
  
  Revision  Changes    Path
  1.18      +22 -19    src/lib/libthr/thread/thr_fork.c
  1.54      +2 -2      src/lib/libthr/thread/thr_init.c
  1.76      +23 -5     src/lib/libthr/thread/thr_mutex.c
  1.105     +2 -1      src/lib/libthr/thread/thr_private.h
  1.20      +7 -0      src/lib/libthr/thread/thr_umtx.c
  1.17      +4 -1      src/lib/libthr/thread/thr_umtx.h



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