DragonFly BSD
DragonFly commits List (threaded) for 2005-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 8 Nov 2005 14:40:01 -0800 (PST)

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


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]