cvs commit: src/sys/kern lwkt_thread.c src/sys/sys spinlock2.h thread.h src/sys/vm vm_zone.c

Matthew Dillon dillon at
Tue Nov 8 14:43:31 PST 2005

dillon      2005/11/08 14:40:01 PST

DragonFly src repository

  Modified files:
    sys/kern             lwkt_thread.c 
    sys/sys              spinlock2.h thread.h 
    sys/vm               vm_zone.c 
  Turn around the spinlock code to reduce the chance of programmer error.
  Remove spin_lock_crit() and spin_unlock_crit().  Instead make the primary
  spinlock API, spin_lock() and spin_unlock(), enter and exit a critical
  section.  Add two API functions, spin_lock_quick() and spin_unlock_quick()
  which assume the caller is already in a critical section or that the spinlock
  will never be used by a preempting thread (hardware interrupt or software
  Revision  Changes    Path
  1.85      +9 -1      src/sys/kern/lwkt_thread.c
  1.2       +29 -7     src/sys/sys/spinlock2.h
  1.72      +2 -1      src/sys/sys/thread.h
  1.19      +7 -7      src/sys/vm/vm_zone.c

More information about the Commits mailing list