1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Support multiple threads by thread pool. v5.0.32

This commit is contained in:
winlin 2022-06-29 20:15:44 +08:00
parent 7c6bd0ce5c
commit b2e083b00d
12 changed files with 479 additions and 104 deletions

View file

@ -42,8 +42,12 @@ bool _srs_in_docker = false;
srs_error_t prepare_main() {
srs_error_t err = srs_success;
if ((err = srs_thread_initialize()) != srs_success) {
return srs_error_wrap(err, "init st");
if ((err = srs_global_initialize()) != srs_success) {
return srs_error_wrap(err, "init global");
}
if ((err = SrsThreadPool::setup_thread_locals()) != srs_success) {
return srs_error_wrap(err, "init thread");
}
srs_freep(_srs_log);