mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
ST: Support set context id while thread running. v5.0.72
This commit is contained in:
parent
9525511032
commit
dc20d5ddbc
12 changed files with 96 additions and 15 deletions
7
trunk/3rdparty/st-srs/key.c
vendored
7
trunk/3rdparty/st-srs/key.c
vendored
|
@ -79,7 +79,12 @@ int st_key_getlimit(void)
|
|||
int st_thread_setspecific(int key, void *value)
|
||||
{
|
||||
_st_thread_t *me = _ST_CURRENT_THREAD();
|
||||
|
||||
return st_thread_setspecific2(me, key, value);
|
||||
}
|
||||
|
||||
|
||||
int st_thread_setspecific2(_st_thread_t *me, int key, void *value)
|
||||
{
|
||||
if (key < 0 || key >= key_max) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue