[Mojo] Make ThreadSafeInterfacePtr always delete responder of mojo call on caller thread.
ThreadSafeInterfacePtr wraps a non-thread-safe InterfacePtr, it may be created/used to make mojo function call on another thread other than the binding thread of the InterfacePtr it wraps. Currently async calls are posted to the sequence that the InteracePtr is bound to, and the responses are posted back, but when the InterfacePtr encounters error or destroyes, it is destroying the response callbacks directly on the binding thread. Because the response callbacks are providerd from the caller thread, it should be better to destroy them also on the caller thread to avoid some thread hostile issues possibly. This CL aims to do this. BUG=775395 Change-Id: Ifd289e0c07ec52fd22674c8d049724d102598a8c Reviewed-on: https://chromium-review.googlesource.com/722719Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Yuzhu Shen <yzshen@chromium.org> Commit-Queue: Han Leon <leon.han@intel.com> Cr-Commit-Position: refs/heads/master@{#509656}
Showing
Please register or sign in to comment