mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Cover more ST Coroutine code
This commit is contained in:
parent
1ce040cc2c
commit
7037f6a197
3 changed files with 37 additions and 12 deletions
|
@ -106,6 +106,10 @@ public:
|
|||
virtual int cid();
|
||||
};
|
||||
|
||||
// For utest to mock the thread create.
|
||||
typedef void* (*_ST_THREAD_CREATE_PFN)(void *(*start)(void *arg), void *arg, int joinable, int stack_size);
|
||||
extern _ST_THREAD_CREATE_PFN _pfn_st_thread_create;
|
||||
|
||||
/**
|
||||
* A ST-coroutine is a lightweight thread, just like the goroutine.
|
||||
* But the goroutine maybe run on different thread, while ST-coroutine only
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue