mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Random tid for docker. 3.0.65
This commit is contained in:
parent
4cd03a7c06
commit
488f16f60c
3 changed files with 7 additions and 2 deletions
|
@ -152,6 +152,7 @@ Please select according to languages:
|
||||||
|
|
||||||
### V3 changes
|
### 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-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-30, Cover protocol stack RTMP. 3.0.63
|
||||||
* v3.0, 2019-10-23, Cover JSON codec. 3.0.62
|
* v3.0, 2019-10-23, Cover JSON codec. 3.0.62
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
// The version config.
|
// The version config.
|
||||||
#define VERSION_MAJOR 3
|
#define VERSION_MAJOR 3
|
||||||
#define VERSION_MINOR 0
|
#define VERSION_MINOR 0
|
||||||
#define VERSION_REVISION 64
|
#define VERSION_REVISION 65
|
||||||
|
|
||||||
// The macros generated by configure script.
|
// The macros generated by configure script.
|
||||||
#include <srs_auto_headers.hpp>
|
#include <srs_auto_headers.hpp>
|
||||||
|
|
|
@ -43,7 +43,11 @@ SrsThreadContext::~SrsThreadContext()
|
||||||
|
|
||||||
int SrsThreadContext::generate_id()
|
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++;
|
int gid = id++;
|
||||||
cache[srs_thread_self()] = gid;
|
cache[srs_thread_self()] = gid;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue