summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_port.c2
-rw-r--r--ipc/ipc_port.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/ipc/ipc_port.c b/ipc/ipc_port.c
index 4e4ad59..bc9ea58 100644
--- a/ipc/ipc_port.c
+++ b/ipc/ipc_port.c
@@ -57,7 +57,7 @@
#endif /* MACH_KDB */
-decl_simple_lock_data(, ipc_port_multiple_lock_data)
+struct lock ipc_port_multiple_lock_data;
decl_simple_lock_data(, ipc_port_timestamp_lock_data)
ipc_port_timestamp_t ipc_port_timestamp_data;
diff --git a/ipc/ipc_port.h b/ipc/ipc_port.h
index de43b42..97e6068 100644
--- a/ipc/ipc_port.h
+++ b/ipc/ipc_port.h
@@ -158,16 +158,16 @@ typedef struct ipc_port_request {
* when it is taken.
*/
-decl_simple_lock_data(extern, ipc_port_multiple_lock_data)
+extern struct lock ipc_port_multiple_lock_data;
#define ipc_port_multiple_lock_init() \
- simple_lock_init(&ipc_port_multiple_lock_data)
+ lock_init(&ipc_port_multiple_lock_data, TRUE)
#define ipc_port_multiple_lock() \
- simple_lock(&ipc_port_multiple_lock_data)
+ lock_write(&ipc_port_multiple_lock_data)
#define ipc_port_multiple_unlock() \
- simple_unlock(&ipc_port_multiple_lock_data)
+ lock_write_done(&ipc_port_multiple_lock_data)
/*
* The port timestamp facility provides timestamps