summaryrefslogtreecommitdiff
path: root/util/atoi.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-18 12:07:26 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-20 19:59:30 +0200
commit35cab1dc03d4454a523c4611f7c770029c29da19 (patch)
tree7dee8f9f9d498e13c4e697a1905be1b9ee7d4169 /util/atoi.c
parentc098b6467ff5cfc25dd800d5bb2966f6ba3edff7 (diff)
kern: provide a way to steal a lock
During the message transport, the sender acquires a lock that is released by the sender. By making this explicit, we can provide stronger guarantees about the locking. * ipc/ipc_mqueue.c (ipc_mqueue_receive): Steal lock. * ipc/ipc_object.h (io_lock_steal): New macro. * ipc/ipc_port.h (ip_lock_steal): Likewise. * ipc/mach_msg.c (mach_msg_trap): Steal lock in the inlined version of `ipc_mqueue_receive'. * kern/lock.c (lock_done): Assert that the current thread holds the lock. * kern/lock.h (lock_write_steal): New macro.
Diffstat (limited to 'util/atoi.c')
0 files changed, 0 insertions, 0 deletions