Random tid for docker. 3.0.65

pull/1568/head
winlin 5 years ago
parent 4cd03a7c06
commit 488f16f60c

@ -152,6 +152,7 @@ Please select according to languages:
### V3 changes
* v3.0, 2019-11-30, Random tid for docker. 3.0.65
* v3.0, 2019-11-30, Refine debug info for edge. 3.0.64
* v3.0, 2019-10-30, Cover protocol stack RTMP. 3.0.63
* v3.0, 2019-10-23, Cover JSON codec. 3.0.62

@ -27,7 +27,7 @@
// The version config.
#define VERSION_MAJOR 3
#define VERSION_MINOR 0
#define VERSION_REVISION 64
#define VERSION_REVISION 65
// The macros generated by configure script.
#include <srs_auto_headers.hpp>

@ -43,7 +43,11 @@ SrsThreadContext::~SrsThreadContext()
int SrsThreadContext::generate_id()
{
static int id = 100;
static int id = 0;
if (id == 0) {
id = (100 + ((int)(int64_t)this)%1000);
}
int gid = id++;
cache[srs_thread_self()] = gid;

Loading…
Cancel
Save