• Qingsi Wang's avatar
    Initialize before using PortAllocator and its subclasses. · cf4ecdad
    Qingsi Wang authored
    WebRTC is redesigning the thread model in PortAllocator and its
    subclasses. The new threading assumption is that every method of
    PortAllocator (including the destructor) must be called on the same
    thread after Initialize is called. This allows a PortAllocator subclass
    to be constructed and configured on one thread, and passed into an
    object that uses it on a different thread.
    
    The above new assumption should be reflected in Chromium objects that
    directly use the WebRTC implementation of PortAllocator.
    
    Bug: 832310
    Change-Id: I3610a714320f6e230e4e3e15c1101bcafbcc175c
    Reviewed-on: https://chromium-review.googlesource.com/1011257Reviewed-by: default avatarYuwei Huang <yuweih@chromium.org>
    Commit-Queue: Qingsi Wang <qingsi@google.com>
    Cr-Commit-Position: refs/heads/master@{#550774}
    cf4ecdad
port_allocator.cc 8.96 KB