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

when thread terminated normally, set the tid to NULL.

This commit is contained in:
winlin 2015-09-14 15:11:49 +08:00
parent a994191ddc
commit 3da25f3aee

View file

@ -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)