kernel - Cleanup token code, add simple exclusive priority
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 19 Oct 2017 20:27:22 +0000 (13:27 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 20 Oct 2017 06:33:55 +0000 (23:33 -0700)
commit83c891d5d2a4a437dbd464ff4a4bdf9602807e07
tree199e438ce1916d6247aa4e4cf2e612b686a29e1e
parent39b9b6cde2b362dfa7d8a21b1f6f5e2246a825a9
kernel - Cleanup token code, add simple exclusive priority

* Cleanup the token code and bring the comments up to date.

* Implement exclusive priority for the situation where a thread is
  acquiring only a single shared token.  We cannot implement exclusive
  priority when multiple tokens are held because that can lead to
  deadlocks.  The token code guarantees no deadlocks.
sys/kern/lwkt_token.c
sys/sys/thread.h