mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #209, server cycle to enable the hls to cleanup. do dispose
This commit is contained in:
parent
567d84e997
commit
d611bb6b45
8 changed files with 109 additions and 3 deletions
|
@ -410,6 +410,11 @@ public:
|
|||
* get the exists source by stream info(vhost, app, stream), NULL when not exists.
|
||||
*/
|
||||
static SrsSource* fetch(std::string vhost, std::string app, std::string stream);
|
||||
/**
|
||||
* dispose and cycle all sources.
|
||||
*/
|
||||
static void dispose_all();
|
||||
static int cycle_all();
|
||||
/**
|
||||
* when system exit, destroy the sources,
|
||||
* for gmc to analysis mem leaks.
|
||||
|
@ -486,6 +491,9 @@ private:
|
|||
public:
|
||||
SrsSource();
|
||||
virtual ~SrsSource();
|
||||
public:
|
||||
virtual void dispose();
|
||||
virtual int cycle();
|
||||
// initialize, get and setter.
|
||||
public:
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue