Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2003 16:39:31 -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/arch/i386/i386 _setcurthread.c src/lib/libthr/thread         thr_private.h thr_spinlock.c
Message-ID:  <200305232339.h4NNdVRC096990@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mtm         2003/05/23 16:39:31 PDT

  FreeBSD src repository

  Modified files:
    lib/libthr/arch/i386/i386 _setcurthread.c 
    lib/libthr/thread    thr_private.h thr_spinlock.c 
  Log:
  Add two functions: _spinlock_pthread() and _spinunlock_pthread()
  that take the address of a struct pthread as their first argument.
  _spin[un]lock() just become wrappers arround these two functions.
  These new functions are for use in situations where curthread can't be
  used. One example is _thread_retire(), where we invalidate the array index
  curthread uses to get its pointer..
  
  Approved by:    re/blanket libthr
  
  Revision  Changes    Path
  1.7       +4 -2      src/lib/libthr/arch/i386/i386/_setcurthread.c
  1.9       +2 -0      src/lib/libthr/thread/thr_private.h
  1.3       +14 -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?200305232339.h4NNdVRC096990>