Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Feb 2005 17:45:55 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libpthread/sys lock.c
Message-ID:  <200502271745.j1RHjtB3020757@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
delphij     2005-02-27 17:45:55 UTC

  FreeBSD src repository

  Modified files:
    lib/libpthread/sys   lock.c 
  Log:
  Change the spin lock logic to a reasonable one.  We should spin when
  the lock is held by other thread, but not when nobody owns it.  According
  to deischen@, this part of code will never be hit in our threads
  library, since it does not use locks without wait/wakeup functions.
  
  Spotted by:     mingyanguo via ChinaUnix.net forum
  Reviewed by:    deischen
  
  Revision  Changes    Path
  1.9       +1 -1      src/lib/libpthread/sys/lock.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502271745.j1RHjtB3020757>