mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
ST: Replace macros with explicit code for better understanding. v7.0.7 (#4149)
Improvements for ST(State Threads): 1. ST: Use g++ for CXX compiler. 2. ST: Remove macros for clist. 3. ST: Remove macros for global thread and vp. 4. ST: Remove macros for vp queue operations. 5. ST: Remove macros for context switch. 6. ST: Remove macros for setjmp/longjmp. 7. ST: Remove macro for stack pad. 8. ST: Refine macro for valgrind. --------- Co-authored-by: Jacob Su <suzp1984@gmail.com>
This commit is contained in:
parent
0d76081430
commit
ff6a608099
15 changed files with 228 additions and 285 deletions
4
trunk/3rdparty/st-srs/key.c
vendored
4
trunk/3rdparty/st-srs/key.c
vendored
|
@ -78,7 +78,7 @@ int st_key_getlimit(void)
|
|||
|
||||
int st_thread_setspecific(int key, void *value)
|
||||
{
|
||||
_st_thread_t *me = _ST_CURRENT_THREAD();
|
||||
_st_thread_t *me = _st_this_thread;
|
||||
return st_thread_setspecific2(me, key, value);
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,7 @@ void *st_thread_getspecific(int key)
|
|||
if (key < 0 || key >= key_max)
|
||||
return NULL;
|
||||
|
||||
return ((_ST_CURRENT_THREAD())->private_data[key]);
|
||||
return _st_this_thread->private_data[key];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue