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

For #1601, flush async on_dvr/on_hls events before stop. 3.0.118

This commit is contained in:
winlin 2020-02-17 11:53:04 +08:00
parent 304b92cc36
commit 5be69d290f
6 changed files with 49 additions and 20 deletions

View file

@ -61,6 +61,7 @@ private:
protected:
std::vector<ISrsAsyncCallTask*> tasks;
srs_cond_t wait;
srs_mutex_t lock;
public:
SrsAsyncCallWorker();
virtual ~SrsAsyncCallWorker();
@ -73,6 +74,8 @@ public:
// Interface ISrsReusableThreadHandler
public:
virtual srs_error_t cycle();
private:
virtual void flush_tasks();
};
#endif