]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ipc/ipc_mqueue.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / ipc / ipc_mqueue.h
index 98ea22434841ea7113420164631642e7d69d5027..47ed2259d1d1dca938f38bf98220e93933cd691a 100644 (file)
@@ -164,7 +164,7 @@ typedef struct ipc_mqueue {
 #define imq_is_valid(mq)        waitq_is_valid(&(mq)->imq_wait_queue)
 
 #define imq_unlock(mq)          waitq_unlock(&(mq)->imq_wait_queue)
-#define imq_held(mq)            waitq_held(&(mq)->imq_wait_queue)
+#define imq_held(mq)            assert(waitq_held(&(mq)->imq_wait_queue))
 #define imq_valid(mq)           waitq_valid(&(mq)->imq_wait_queue)
 
 extern void imq_lock(ipc_mqueue_t mq);