when thread terminated normally, set the tid to NULL.
This commit is contained in:
parent
a994191ddc
commit
3da25f3aee
|
|
@ -218,7 +218,8 @@ namespace internal {
|
||||||
handler->on_thread_stop();
|
handler->on_thread_stop();
|
||||||
srs_info("thread %s cycle finished", _name);
|
srs_info("thread %s cycle finished", _name);
|
||||||
|
|
||||||
// TODO: FIXME: when thread terminated normally, set the tid to NULL.
|
// when thread terminated normally, set the tid to NULL.
|
||||||
|
tid = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void* SrsThread::thread_fun(void* arg)
|
void* SrsThread::thread_fun(void* arg)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user