This is in preparation for a WrapCurrentThread method, or AutoThread constructor, taking a socket server as argument, to eliminate the need for the MessageQueue::set_socketserver method and its lock. No intended change in behaviour; the ThreadManager constructor records the calling thread id, and autowrap is still restricted to that thread. Behavior when NO_MAIN_THREAD_WRAPPING is defined is also unchanged. Also makes the ThreadManager a singleton, with private constructor and destructor. And marks its destructor as RTC_NOTREACHED, since by the documentation for RTC_DEFINE_STATIC_LOCAL, the intention is to leak the object and never destruct it. BUG=webrtc:7501 Review-Url: https://codereview.webrtc.org/2833993003 Cr-Commit-Position: refs/heads/master@{#17879}
Name: WebRTC URL: http://www.webrtc.org Version: 90 License: BSD License File: LICENSE Description: WebRTC provides real time voice and video processing functionality to enable the implementation of PeerConnection/MediaStream. Third party code used in this project is described in the file LICENSE_THIRD_PARTY.