Revert "Add thread checker to PortAllocator and its subclasses and fix a bug"
This reverts commit fc43d11717e16dd427ac84fee614e5511e43cefd. Reason for revert: Crashes downstream tests Original change's description: > Add thread checker to PortAllocator and its subclasses and fix a bug > causing memory contention by threads. > > PortAllocator and its subclasses assume all of their methods except the > constructor must be called on the same thread (the network thread in > practice). This CL adds a thread checker to PortAllocator and its > subclasses for thread safety, and fixes bugs of invoking some of their > methods in PeerConnection on the signaling thread. > > Bug: webrtc:9112 > Change-Id: I33ba9bae72ec09a45ec70435962f3f25cd31583c > Reviewed-on: https://webrtc-review.googlesource.com/66945 > Commit-Queue: Qingsi Wang <qingsi@google.com> > Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#22814} TBR=deadbeef@webrtc.org,pthatcher@google.com,pthatcher@webrtc.org,qingsi@google.com,honghaiz@webrtc.org Change-Id: I2db6561d5d6366d38caa58c3e719d0d48eda70c2 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:9112 Reviewed-on: https://webrtc-review.googlesource.com/69200 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22818}
This commit is contained in:
committed by
Commit Bot
parent
9df3cf3e8c
commit
3dc41069ef
@ -3182,14 +3182,8 @@ class PeerConnectionIntegrationIceStatesTest
|
||||
}
|
||||
|
||||
void SetPortAllocatorFlags() {
|
||||
network_thread()->Invoke<void>(
|
||||
RTC_FROM_HERE,
|
||||
rtc::Bind(&cricket::PortAllocator::set_flags,
|
||||
caller()->port_allocator(), port_allocator_flags_));
|
||||
network_thread()->Invoke<void>(
|
||||
RTC_FROM_HERE,
|
||||
rtc::Bind(&cricket::PortAllocator::set_flags,
|
||||
callee()->port_allocator(), port_allocator_flags_));
|
||||
caller()->port_allocator()->set_flags(port_allocator_flags_);
|
||||
callee()->port_allocator()->set_flags(port_allocator_flags_);
|
||||
}
|
||||
|
||||
std::vector<SocketAddress> CallerAddresses() {
|
||||
|
||||
Reference in New Issue
Block a user