mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine global or thread-local variables initialize. 4.0.104
This commit is contained in:
parent
e7cce88912
commit
e8f7c913b0
6 changed files with 36 additions and 20 deletions
|
@ -87,6 +87,11 @@ SrsServer* _srs_server = NULL;
|
|||
srs_error_t do_main(int argc, char** argv)
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
// Initialize global or thread-local variables.
|
||||
if ((err = srs_thread_initialize()) != srs_success) {
|
||||
return srs_error_wrap(err, "thread init");
|
||||
}
|
||||
|
||||
// TODO: support both little and big endian.
|
||||
srs_assert(srs_is_little_endian());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue