@@ -812,7 +812,8 @@ srs_error_t SrsServer::initialize(ISrsServerCycle* ch)
812
812
// instead, subscribe handler in initialize method.
813
813
srs_assert (_srs_config);
814
814
_srs_config->subscribe (this );
815
-
815
+
816
+ // TODO: FIXME: It should be thread-local or thread-safe.
816
817
handler = ch;
817
818
if (handler && (err = handler->initialize ()) != srs_success){
818
819
return srs_error_wrap (err, " handler initialize" );
@@ -946,7 +947,6 @@ srs_error_t SrsServer::ingest()
946
947
{
947
948
srs_error_t err = srs_success;
948
949
949
- // TODO: FIXME: Should move from hybrid to api threads.
950
950
if ((err = ingester->start ()) != srs_success) {
951
951
return srs_error_wrap (err, " ingest start" );
952
952
}
@@ -1675,14 +1675,17 @@ srs_error_t SrsServerAdapter::run()
1675
1675
return srs_error_wrap (err, " server initialize" );
1676
1676
}
1677
1677
1678
+ // TODO: FIXME: It should be thread-local or thread-safe.
1678
1679
if ((err = srs->initialize_st ()) != srs_success) {
1679
1680
return srs_error_wrap (err, " initialize st" );
1680
1681
}
1681
1682
1683
+ // TODO: FIXME: It should be thread-local or thread-safe.
1682
1684
if ((err = srs->acquire_pid_file ()) != srs_success) {
1683
1685
return srs_error_wrap (err, " acquire pid file" );
1684
1686
}
1685
1687
1688
+ // TODO: FIXME: It should be thread-local or thread-safe.
1686
1689
if ((err = srs->initialize_signal ()) != srs_success) {
1687
1690
return srs_error_wrap (err, " initialize signal" );
1688
1691
}
@@ -1691,10 +1694,12 @@ srs_error_t SrsServerAdapter::run()
1691
1694
return srs_error_wrap (err, " listen" );
1692
1695
}
1693
1696
1697
+ // TODO: FIXME: It should be thread-local or thread-safe.
1694
1698
if ((err = srs->register_signal ()) != srs_success) {
1695
1699
return srs_error_wrap (err, " register signal" );
1696
1700
}
1697
1701
1702
+ // TODO: FIXME: It should be thread-local or thread-safe.
1698
1703
if ((err = srs->ingest ()) != srs_success) {
1699
1704
return srs_error_wrap (err, " ingest" );
1700
1705
}
0 commit comments