Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jun 2003 16:49:41 -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_private.h thr_spinlock.c
Message-ID:  <200306292349.h5TNnfsF028783@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mtm         2003/06/29 16:49:41 PDT

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_private.h thr_spinlock.c 
  Log:
  Locking primitives and operations in libthr should use struct umtx,
  not spinlock_t. Spinlock_t and the associated functions and macros may
  require blocking signals in order for async-safe libc functions to behave
  appropriately in libthr. This is undesriable for libthr internal locking.
  So, this is the first step in completely separating libthr from libc's
  locking primitives.
  
  Three new macros should be used for internal libthr locking from now on:
  THR_LOCK, THR_TRYLOCK, THR_UNLOCK.
  
  Revision  Changes    Path
  1.19      +20 -2     src/lib/libthr/thread/thr_private.h
  1.6       +2 -2      src/lib/libthr/thread/thr_spinlock.c



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