Add g_topology_locked() macro that returns true if we already hold the GEOM
topology lock.
This commit is contained in:
parent
61fbd61b59
commit
cefbc0d19b
@ -395,6 +395,8 @@ g_free(void *ptr)
|
||||
sx_xunlock(&topology_lock); \
|
||||
} while (0)
|
||||
|
||||
#define g_topology_locked() sx_xlocked(&topology_lock)
|
||||
|
||||
#define g_topology_assert() \
|
||||
do { \
|
||||
sx_assert(&topology_lock, SX_XLOCKED); \
|
||||
|
Loading…
Reference in New Issue
Block a user