git: kernel - Cleanup token code, add simple exclusive priority

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Oct 19 23:33:58 PDT 2017


commit 83c891d5d2a4a437dbd464ff4a4bdf9602807e07
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Oct 19 13:27:22 2017 -0700

    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.

Summary of changes:
 sys/kern/lwkt_token.c | 53 ++++++++++++++++++---------------------------------
 sys/sys/thread.h      | 28 ++++++++++++++++++++-------
 2 files changed, 40 insertions(+), 41 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/83c891d5d2a4a437dbd464ff4a4bdf9602807e07


-- 
DragonFly BSD source repository



More information about the Commits mailing list