前言
源码分析
打断点
运行后查看
然后在这里也创建断点
连接对端后进去该函数。
rtc::scoped_refptr<PeerConnectionFactoryInterface> CreatePeerConnectionFactory(rtc::Thread* network_thread,rtc::Thread* worker_thread,rtc::Thread* signaling_thread,rtc::scoped_refptr<AudioDeviceModule> default_adm,rtc::scoped_refptr<AudioEncoderFactory> audio_encoder_factory,rtc::scoped_refptr<AudioDecoderFactory> audio_decoder_factory,std::unique_ptr<VideoEncoderFactory> video_encoder_factory,std::unique_ptr<VideoDecoderFactory> video_decoder_factory,rtc::scoped_refptr<AudioMixer> audio_mixer,rtc::scoped_refptr<AudioProcessing> audio_processing,AudioFrameProcessor* audio_frame_processor)-》CreateModularPeerConnectionFactory-》PeerConnectionFactory::PeerConnectionFactory(rtc::scoped_refptr<ConnectionContext> context,PeerConnectionFactoryDependencies* dependencies): context_(context),task_queue_factory_(std::move(dependencies->task_queue_factory)),event_log_factory_(std::move(dependencies->event_log_factory)),fec_controller_factory_(std::move(dependencies->fec_controller_factory)),network_state_predictor_factory_(std::move(dependencies->network_state_predictor_factory)),injected_network_controller_factory_(std::move(dependencies->network_controller_factory)),neteq_factory_(std::move(dependencies->neteq_factory)) {}
Thread* Thread::Current() {ThreadManager* manager = ThreadManager::Instance();Thread* thread = manager->CurrentThread();****return thread;}-》Thread* ThreadManager::CurrentThread() {return static_cast<Thread*>(TlsGetValue(key_));}thread地址


