From b51f047c28142cdfb7b24641006d0afdcf399292 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sun, 16 Aug 2015 02:18:47 +0200 Subject: codify locking contracts Conflicts: vm/vm_page.h --- ipc/ipc_mqueue.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipc/ipc_mqueue.h') diff --git a/ipc/ipc_mqueue.h b/ipc/ipc_mqueue.h index e7d5670..761e67d 100644 --- a/ipc/ipc_mqueue.h +++ b/ipc/ipc_mqueue.h @@ -54,6 +54,9 @@ typedef struct ipc_mqueue { #define imq_lock(mq) lock_write(&(mq)->imq_lock_data) #define imq_lock_try(mq) lock_try_write(&(mq)->imq_lock_data) #define imq_unlock(mq) lock_write_done(&(mq)->imq_lock_data) +#define have_imq_lock(mq) have_write_lock(&(mq)->imq_lock_data) +#define imq_lock_surrender(mq) lock_write_surrender(&(mq)->imq_lock_data) +#define imq_lock_steal(mq) lock_write_steal(&(mq)->imq_lock_data) extern void ipc_mqueue_init(ipc_mqueue_t); -- cgit v1.2.3