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

refine the thread to three category.

This commit is contained in:
winlin 2015-05-23 09:20:16 +08:00
parent 2f0ef87d6d
commit e5f449ce36
25 changed files with 648 additions and 416 deletions

View file

@ -59,12 +59,12 @@ public:
* encode with FFMPEG(optional),
* push to SRS(or any RTMP server) over RTMP.
*/
class SrsIngester : public ISrsThreadHandler, public ISrsReloadHandler
class SrsIngester : public ISrsReusableThreadHandler, public ISrsReloadHandler
{
private:
std::vector<SrsIngesterFFMPEG*> ingesters;
private:
SrsThread* pthread;
SrsReusableThread* pthread;
SrsPithyPrint* pprint;
public:
SrsIngester();
@ -72,7 +72,7 @@ public:
public:
virtual int start();
virtual void stop();
// interface ISrsThreadHandler.
// interface ISrsReusableThreadHandler.
public:
virtual int cycle();
virtual void on_thread_stop();