tsleep - close a tsleep/wakeup race.
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 9 Aug 2009 02:34:07 +0000 (19:34 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 9 Aug 2009 02:34:07 +0000 (19:34 -0700)
commit4ecd8190c7233ad5f0caba1438da9745d643875a
tree8af69e79a4cdbec2198c7506a41a78eb62af5750
parent930bd1514975d93f8357ff40f5113d940c716090
tsleep - close a tsleep/wakeup race.

* Interlock the tsleep prior to releasing the current thread to close a
  sleep/wakeup race.
sys/kern/kern_synch.c