mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the thread, set to disposed when terminate normally
This commit is contained in:
parent
83a9ff9f5d
commit
eb578b4a39
3 changed files with 50 additions and 34 deletions
|
@ -100,6 +100,7 @@ namespace internal {
|
|||
bool really_terminated;
|
||||
bool _joinable;
|
||||
const char* _name;
|
||||
bool disposed;
|
||||
private:
|
||||
ISrsThreadHandler* handler;
|
||||
int64_t cycle_interval_us;
|
||||
|
@ -154,6 +155,7 @@ namespace internal {
|
|||
*/
|
||||
virtual void stop_loop();
|
||||
private:
|
||||
virtual void dispose();
|
||||
virtual void thread_cycle();
|
||||
static void* thread_fun(void* arg);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue