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:
parent
c8bf98e8e2
commit
c4a64ee470
4 changed files with 162 additions and 86 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue