Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-12-02 19:22:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
24a6a723eebcf97ac4aa6fc283514db9ec99fec0
24a6a723
1 parent
6f963b50
for bug #237, never sleep when thread interval is 0.
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
7 行增加
和
3 行删除
trunk/src/app/srs_app_recv_thread.hpp
trunk/src/app/srs_app_thread.cpp
trunk/src/app/srs_app_recv_thread.hpp
查看文件 @
24a6a72
...
...
@@ -129,9 +129,9 @@ public:
};
/**
* the publish recv thread got message and callback the source method to process message.
* the publish recv thread got message and callback the source method to process message.
* @see: https://github.com/winlinvip/simple-rtmp-server/issues/237
*/
*/
class
SrsPublishRecvThread
:
public
ISrsMessageHandler
{
private
:
...
...
trunk/src/app/srs_app_thread.cpp
查看文件 @
24a6a72
...
...
@@ -179,7 +179,11 @@ failed:
break
;
}
st_usleep
(
cycle_interval_us
);
// to improve performance, donot sleep when interval is zero.
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/237
if
(
cycle_interval_us
>
0
)
{
st_usleep
(
cycle_interval_us
);
}
}
handler
->
on_thread_stop
();
...
...
请
注册
或
登录
后发表评论