winlin

when thread terminated normally, set the tid to NULL.

@@ -218,7 +218,8 @@ namespace internal { @@ -218,7 +218,8 @@ namespace internal {
218 handler->on_thread_stop(); 218 handler->on_thread_stop();
219 srs_info("thread %s cycle finished", _name); 219 srs_info("thread %s cycle finished", _name);
220 220
221 - // TODO: FIXME: when thread terminated normally, set the tid to NULL. 221 + // when thread terminated normally, set the tid to NULL.
  222 + tid = NULL;
222 } 223 }
223 224
224 void* SrsThread::thread_fun(void* arg) 225 void* SrsThread::thread_fun(void* arg)