cvs commit: src/lib/libthr/thread thr_private.h thr_spinlock.c

Mike Makonnen mtm at FreeBSD.org
Sun Jun 29 16:49:44 PDT 2003


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


More information about the cvs-src mailing list