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:
parent
2f0ef87d6d
commit
e5f449ce36
25 changed files with 648 additions and 416 deletions
|
@ -48,7 +48,7 @@ class SrsKbps;
|
|||
* forward the stream to other servers.
|
||||
*/
|
||||
// TODO: FIXME: refine the error log, comments it.
|
||||
class SrsForwarder : public ISrsThreadHandler
|
||||
class SrsForwarder : public ISrsReusableThreadHandler
|
||||
{
|
||||
private:
|
||||
// the ep to forward, server[:port].
|
||||
|
@ -57,7 +57,7 @@ private:
|
|||
int stream_id;
|
||||
private:
|
||||
st_netfd_t stfd;
|
||||
SrsThread* pthread;
|
||||
SrsReusableThread* pthread;
|
||||
private:
|
||||
SrsSource* source;
|
||||
ISrsProtocolReaderWriter* io;
|
||||
|
@ -95,7 +95,7 @@ public:
|
|||
* @param shared_video, directly ptr, copy it if need to save it.
|
||||
*/
|
||||
virtual int on_video(SrsSharedPtrMessage* shared_video);
|
||||
// interface ISrsThreadHandler.
|
||||
// interface ISrsReusableThreadHandler.
|
||||
public:
|
||||
virtual int cycle();
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue