mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
ST: Print log when multiple thread stop one coroutine. (#1708)
This commit is contained in:
parent
ff33940d90
commit
93964bb037
2 changed files with 14 additions and 0 deletions
|
@ -163,6 +163,10 @@ private:
|
|||
bool disposed;
|
||||
// Cycle done, no need to interrupt it.
|
||||
bool cycle_done;
|
||||
private:
|
||||
// Sub state in disposed, we need to wait for thread to quit.
|
||||
bool stopping_;
|
||||
SrsContextId stopping_cid_;
|
||||
public:
|
||||
SrsFastCoroutine(std::string n, ISrsCoroutineHandler* h);
|
||||
SrsFastCoroutine(std::string n, ISrsCoroutineHandler* h, SrsContextId cid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue