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

Use SrsAsyncCallWorker in http hooks instead, to covert to async call. (#2542)

* Use SrsAsyncCallWorker in http hooks instead, to covert to async call.

* delete invalid function
This commit is contained in:
Haibo Chen 2021-08-27 07:44:19 +08:00 committed by GitHub
parent 826f5121c5
commit a7feedabc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 162 additions and 86 deletions

View file

@ -15,6 +15,7 @@
#include <srs_app_hourglass.hpp>
#include <srs_app_hybrid.hpp>
#include <srs_app_rtc_sdp.hpp>
#include <srs_app_async_call.hpp>
#include <string>
@ -94,6 +95,7 @@ private:
std::vector<SrsUdpMuxListener*> listeners;
ISrsRtcServerHandler* handler;
ISrsRtcServerHijacker* hijacker;
SrsAsyncCallWorker* async;
public:
SrsRtcServer();
virtual ~SrsRtcServer();
@ -106,6 +108,7 @@ public:
// Set the handler for server events.
void set_handler(ISrsRtcServerHandler* h);
void set_hijacker(ISrsRtcServerHijacker* h);
srs_error_t exec_async_work(ISrsAsyncCallTask* t);
public:
// TODO: FIXME: Support gracefully quit.
// TODO: FIXME: Support reload.