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

SRT: Extract ISrsSrtPoller to hide SRT_EPOLL_EVENT

This commit is contained in:
winlin 2022-06-07 20:40:31 +08:00
parent 94cc50d146
commit d39ec3cf45
5 changed files with 47 additions and 20 deletions

View file

@ -111,7 +111,7 @@ public:
SrsSrtEventLoop();
virtual ~SrsSrtEventLoop();
public:
SrsSrtPoller* poller() { return srt_poller_; }
ISrsSrtPoller* poller() { return srt_poller_; }
public:
srs_error_t initialize();
srs_error_t start();
@ -119,7 +119,7 @@ public:
public:
virtual srs_error_t cycle();
private:
SrsSrtPoller* srt_poller_;
ISrsSrtPoller* srt_poller_;
SrsCoroutine* trd_;
};