DescriptionMake mojo::internal::MultiplexRouter::InterfaceEndPoint RefCountedThreadSafe
InterfaceEndPoint's ref count is a non-thread-safe, and is used behind a
lock. The usage of it is not racy, but an upcoming change to add an
assertion to RefCounted requires a suppression here.
This CL converts InterfaceEndPoint to RefCountedThreadSafe, which doesn't
need the suppression, regarding the atomic operations is lightweight
comparing to a lock that covers the object itself, and RefCountedThreadSafe
less error prone for cross thread usage.
BUG=688072
Review-Url: https://codereview.chromium.org/2788543002
Cr-Commit-Position: refs/heads/master@{#460692}
Committed: https://chromium.googlesource.com/chromium/src/+/b580fa032bb7a9d48c295f87cf69361a39e449b7
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 14 (10 generated)
|