DescriptionDCHECK that listener thread != IO thread
This came up in code review, where somebody was creating a SyncChannel on the IO thread. That will easily lead to deadlocks.
For ChannelProxy, it seems OK to have them be the same thread so long as there is no Listener. We apparently already do this in one place:
https://code.google.com/p/chromium/codesearch#chromium/src/components/nacl/browser/nacl_process_host.cc&l=866
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264424
Patch Set 1 #Patch Set 2 : Clean up for possible commit #Patch Set 3 : add DCHECK for IPC::SyncChannel #Patch Set 4 : Stronger check in ChannelProxy #Patch Set 5 : Back to weaker check in ChannelProxy for now. #Messages
Total messages: 9 (0 generated)
|