Add a primitive to check if a lock is not owned.

This commit is contained in:
Adrian Chadd 2012-11-26 00:06:55 +00:00
parent f114e8dbc7
commit 3845e36744

View File

@ -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.