1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #906, #902, remove the thread start and stop event

This commit is contained in:
winlin 2017-05-29 18:42:36 +08:00
parent 3ffb0980f5
commit b21f92f97a
12 changed files with 62 additions and 67 deletions

View file

@ -79,6 +79,19 @@ void SrsNgExec::on_unpublish()
}
int SrsNgExec::cycle()
{
int ret = do_cycle();
std::vector<SrsProcess*>::iterator it;
for (it = exec_publishs.begin(); it != exec_publishs.end(); ++it) {
SrsProcess* ep = *it;
ep->stop();
}
return ret;
}
int SrsNgExec::do_cycle()
{
int ret = ERROR_SUCCESS;
@ -110,15 +123,6 @@ int SrsNgExec::cycle()
return ret;
}
void SrsNgExec::on_thread_stop()
{
std::vector<SrsProcess*>::iterator it;
for (it = exec_publishs.begin(); it != exec_publishs.end(); ++it) {
SrsProcess* ep = *it;
ep->stop();
}
}
int SrsNgExec::parse_exec_publish(SrsRequest* req)
{
int ret = ERROR_SUCCESS;