Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 May 2003 00:58:22 -0700 (PDT)
From:      Mike Makonnen <mtm@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libthr/thread thr_kern.c thr_private.h
Message-ID:  <200305250758.h4P7wMlf053529@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mtm         2003/05/25 00:58:22 PDT

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_kern.c thr_private.h 
  Log:
  The libthr code makes use of higher-level primitives (pthread_mutex_t and
  pthread_cond_t) internaly in addition to the low-level spinlock_t. The
  garbage collector mutex and condition variable are two such examples. This
  might lead to critical sections nested within critical sections. Implement
  a reference counting mechanism so that signals are masked only on the first
  entry and unmasked on the last exit.
  
  I'm not sure I like the idea of nested critical sections, but if
  the library is going to use the pthread primitives it might be necessary.
  
  Approved by:    re/blanket libthr
  
  Revision  Changes    Path
  1.8       +13 -0     src/lib/libthr/thread/thr_kern.c
  1.10      +1 -0      src/lib/libthr/thread/thr_private.h



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