mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Context: Refine API
This commit is contained in:
parent
cf428b8db4
commit
311cb77b36
5 changed files with 12 additions and 10 deletions
|
@ -45,8 +45,8 @@ SrsThreadContext::~SrsThreadContext()
|
|||
|
||||
SrsContextId SrsThreadContext::generate_id()
|
||||
{
|
||||
SrsContextId cid = SrsContextId(srs_random_str(8));
|
||||
return cid;
|
||||
SrsContextId cid = SrsContextId();
|
||||
return cid.set_value(srs_random_str(8));
|
||||
}
|
||||
|
||||
const SrsContextId& SrsThreadContext::get_id()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue