当前位置:网站首页>Threading model in webrtc native
Threading model in webrtc native
2022-06-26 10:18:00 【Crossing the river with a reed 694】
WebRTC Basic threads in

In order to reduce the complexity of the system , Improve the efficiency of the system ,WebRTC A multithreading framework is designed , And made elaborate design .
It mainly includes three threads :
rtc::Thread* network_thread;
rtc::Thread* worker_thread;
rtc::Thread* signaling_thread;
network_thread
Network thread (Network thread )
It mainly works in transmission (transport) layer , The specific work is as follows :
Transport The initialization
Receive data from the network , Send to Worker thread
from Worker thread receive data , Send to network
worker_thread;
A way to handle a large workload , Methods within this thread may take a long time to process
signaling_thread;
Ways to handle small workloads , It is required that all methods in this thread must return quickly
signaling_thread = rtc::Thread::CreateWithSocketServer();
CreatePeerConnectionFactory
peer_connection_factory_ = webrtc::CreatePeerConnectionFactory(
network_thread , worker_thread,
sig边栏推荐
- TensorFlow遇到的各种错误
- 國際化配置
- 118. Yanghui triangle
- JSP file syntax
- [untitled]
- 测试实践——app 测试注意点
- leetCode-链表的中间结点
- Problems encountered in the application and development of Hongmeng and some roast
- Basic grammar of C language -- pointer (character, one-dimensional array) learning
- Learning and understanding of thread pool (with code examples)
猜你喜欢

Solution to network request crash in retrofit2.8.1

Software testing - how to select the appropriate orthogonal table

DAY 3 数组,前置后置,字符空间,关键词和地址指针

cmake / set 命令

利用foreach循环二维数组

Redis notes (12) - single thread architecture (non blocking IO, multiplexing) and multiple asynchronous threads

jar版本冲突问题解决

Redis master-slave replication in win10 system

定制拦截器

WIN10系统实现Redis主从复制
随机推荐
Small example of SSM project, detailed tutorial of SSM integration
904. fruit baskets
自动化测试——关于unitest与pytest初始化共存问题
Jupyter Notebook遇到的问题
The basis of C language grammar -- function nesting, Fibonacci sum of recursive applet and factorial
MySQL项目8总结
cento7.7安装ELK简单记录
自动化测试——pytest框架介绍及示例
[sans titre]
What is a botnet
TensorFlow动态分配显存
echo $?
The basis of C language grammar -- factoring by function applet
String constant pool, class constant pool, and runtime constant pool
libgstreamer-1.0. so. 0: cannot open shared object file: No such file or directory
Full introduction to flexboxlayout (Google official flexible implementation of flow layout control)
Some problems to be considered when designing technical implementation scheme
[untitled]
How to find and install the dependent libraries of Debian system
118. Yanghui triangle