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

For #906, #902, use coroutine for reusable thread

This commit is contained in:
winlin 2017-05-29 20:33:32 +08:00
parent 2ed2513f08
commit ea9a5f26d9
18 changed files with 174 additions and 274 deletions

View file

@ -63,10 +63,10 @@ public:
* when worker call with the task, the worker will do it in isolate thread.
* that is, the task is execute/call in async mode.
*/
class SrsAsyncCallWorker : public ISrsReusableThreadHandler
class SrsAsyncCallWorker : public ISrsCoroutineHandler
{
private:
SrsReusableThread* pthread;
SrsCoroutine* trd;
protected:
std::vector<ISrsAsyncCallTask*> tasks;
st_cond_t wait;