Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2003 12:32:41 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_mutex.c
Message-ID:  <200303042032.h24KWfo8054556@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2003/03/04 12:32:41 PST

  FreeBSD src repository

  Modified files:
    sys/kern             kern_mutex.c 
  Log:
  Miscellaneous cleanups to _mtx_lock_sleep():
  - Declare some local variables at the top of the function instead of in a
    nested block.
  - Use mtx_owned() instead of masking off bits from mtx_lock manually.
  - Read the value of mtx_lock into 'v' as a separate line rather than inside
    an if statement for clarity.  This code is hairy enough as it is.
  
  Revision  Changes    Path
  1.120     +6 -4      src/sys/kern/kern_mutex.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




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