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

fix #78 st joinable thread must be stop by other threads, 0.9.113

This commit is contained in:
winlin 2014-05-23 17:23:33 +08:00
parent 6fba0db9b5
commit 0eb9e0af5b
14 changed files with 96 additions and 16 deletions

View file

@ -84,7 +84,7 @@ SrsListener::SrsListener(SrsServer* server, SrsListenerType type)
_server = server;
_type = type;
pthread = new SrsThread(this, 0);
pthread = new SrsThread(this, 0, true);
}
SrsListener::~SrsListener()
@ -197,7 +197,7 @@ SrsSignalManager::SrsSignalManager(SrsServer* server)
_server = server;
sig_pipe[0] = sig_pipe[1] = -1;
pthread = new SrsThread(this, 0);
pthread = new SrsThread(this, 0, true);
signal_read_stfd = NULL;
}