Add a primitive to check if a lock is not owned.
This commit is contained in:
parent
f114e8dbc7
commit
3845e36744
@ -53,6 +53,8 @@ typedef struct {
|
||||
#define IEEE80211_UNLOCK(_ic) mtx_unlock(IEEE80211_LOCK_OBJ(_ic))
|
||||
#define IEEE80211_LOCK_ASSERT(_ic) \
|
||||
mtx_assert(IEEE80211_LOCK_OBJ(_ic), MA_OWNED)
|
||||
#define IEEE80211_UNLOCK_ASSERT(_ic) \
|
||||
mtx_assert(IEEE80211_LOCK_OBJ(_ic), MA_NOTOWNED)
|
||||
|
||||
/*
|
||||
* Node locking definitions.
|
||||
|
Loading…
x
Reference in New Issue
Block a user