diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-04 20:32:41 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-04 20:32:41 +0000 |
commit | f78f351da3ab2ef37d3c47a8577df0cec4e271cd (patch) | |
tree | 842b508fe0eef7a8afde073a77ad4c34f18e1d8d /contrib | |
parent | 3b2bb7e47b9eeacda34542c9c0135f7cff2bbeab (diff) | |
download | FreeBSD-src-f78f351da3ab2ef37d3c47a8577df0cec4e271cd.zip FreeBSD-src-f78f351da3ab2ef37d3c47a8577df0cec4e271cd.tar.gz |
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.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions