Add a UGAR() macro to simplify the diff's for the Giant pushdown.

This commit is contained in:
John Baldwin 2001-08-31 00:36:29 +00:00
parent 27a6d44d7f
commit 55be7f3e8d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82609

View File

@ -354,6 +354,12 @@ do { \
if (mtx_owned(&Giant)) \
WITNESS_RESTORE(&Giant.mtx_object, Giant)
#define UGAR(rval) do { \
int _val = (rval); \
mtx_unlock(&Giant); \
return (_val); \
} while (0)
/*
* The INVARIANTS-enabled mtx_assert() functionality.
*