当前位置:网站首页>Basic introduction and source code analysis of webrtc threads

Basic introduction and source code analysis of webrtc threads

2022-07-06 00:19:00 Linghu leader

   A super complex framework 、 Components , To find out its context , Or there is an official introduction , Or look at the source code by yourself .
   To understand learning webrtc Thread framework for , We can start from the most basic peerconnection_client To study , Let's see. peerconnection_client Of main Functional 3 Line code , Here's the picture
 Insert picture description here
   These three lines of code mainly create a w32_thread, And set it to the current thread with the thread manager , What does that mean ? Need to see SetCurrentThread function , stay windows Will eventually call SetCurrentThreadInternal, The code is as follows :

void ThreadManager::SetCurrentThreadInternal(Thread* thread) { 
    
  TlsSetValue(key_, thread)
原网站

版权声明
本文为[Linghu leader]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140232452236.html