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
|
@ -367,13 +367,12 @@ SrsSignalManager::SrsSignalManager(SrsServer* server)
|
|||
|
||||
_server = server;
|
||||
sig_pipe[0] = sig_pipe[1] = -1;
|
||||
pthread = new SrsThread("signal", this, 0, true);
|
||||
pthread = new SrsEndlessThread("signal", this);
|
||||
signal_read_stfd = NULL;
|
||||
}
|
||||
|
||||
SrsSignalManager::~SrsSignalManager()
|
||||
{
|
||||
pthread->stop();
|
||||
srs_freep(pthread);
|
||||
|
||||
srs_close_stfd(signal_read_stfd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue