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:
parent
94cc50d146
commit
d39ec3cf45
5 changed files with 47 additions and 20 deletions
|
|
@ -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_;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue