cvs commit: src/sys/sys filedesc.h

Poul-Henning Kamp phk at FreeBSD.org
Wed Nov 17 07:39:59 GMT 2004


phk         2004-11-17 07:39:58 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              filedesc.h 
  Log:
  Split the FILEDESC_LOCK in two variants.
  
  FILEDESC_LOCK_FAST will just grab the interlocking mutex and hold
  it.  This should be used for simple modifications of a field.
  
  FILEDESC_LOCK holds a (homegrown) sleepable lock which should be used
  where sleeping is required.
  
  The homegrown lock will probably be replaced with a generic type of lock
  once we have found out how that should look.
  
  Help and reviews by:    rwatson
  
  Revision  Changes    Path
  1.65      +57 -8     src/sys/sys/filedesc.h


More information about the cvs-src mailing list