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

Merge SRS3

This commit is contained in:
winlin 2020-03-12 22:42:33 +08:00
commit 1382337cb4
10 changed files with 226 additions and 14 deletions

View file

@ -185,6 +185,24 @@ private:
static void sig_catcher(int signo);
};
// Auto reload by inotify.
// @see https://github.com/ossrs/srs/issues/1635
class SrsInotifyWorker : public ISrsCoroutineHandler
{
private:
SrsServer* server;
SrsCoroutine* trd;
srs_netfd_t inotify_fd;
public:
SrsInotifyWorker(SrsServer* s);
virtual ~SrsInotifyWorker();
public:
virtual srs_error_t start();
// Interface ISrsEndlessThreadHandler.
public:
virtual srs_error_t cycle();
};
// A handler to the handle cycle in SRS RTMP server.
class ISrsServerCycle
{