diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-12-15 11:53:26 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-02-17 20:29:15 +0100 |
commit | fb8c531ddeef55c8581d3882bd1b1f501d980a30 (patch) | |
tree | 58ad72469c5176a1bfaad978e9d56f591e26e115 /libports/ports.h | |
parent | eceeaeb5a2d40875fd432148b9cf26b41497811d (diff) |
libports: avoid acquiring global lock in message dispatch
* libports/interrupt-operation.c (ports_S_interrupt_operation): Update
`cancel_threshold' using atomic operations.
* libports/manage-multithread.c (internal_demuxer): Avoid taking the lock.
* libports/ports.h (struct port_info): Mention that one needs atomic
operations to access `cancel_threshold'.
Diffstat (limited to 'libports/ports.h')
-rw-r--r-- | libports/ports.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libports/ports.h b/libports/ports.h index a625b479..f02edb42 100644 --- a/libports/ports.h +++ b/libports/ports.h @@ -48,7 +48,7 @@ struct port_info struct port_class *class; refcounts_t refcounts; mach_port_mscount_t mscount; - mach_msg_seqno_t cancel_threshold; + mach_msg_seqno_t cancel_threshold; /* needs atomic operations */ int flags; mach_port_t port_right; struct rpc_info *current_rpcs; |