diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-16 02:18:47 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-14 14:45:06 +0200 |
commit | b51f047c28142cdfb7b24641006d0afdcf399292 (patch) | |
tree | 7387a8a62833e78eb232005121b0a7d786c86c6b /ipc/ipc_mqueue.h | |
parent | 537188a07d5ee6548555260acdd616034c73c7c4 (diff) |
codify locking contracts
Conflicts:
vm/vm_page.h
Diffstat (limited to 'ipc/ipc_mqueue.h')
-rw-r--r-- | ipc/ipc_mqueue.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |