mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Add api to stat mw iovec
This commit is contained in:
parent
b3b76b0ca6
commit
90a39ec46d
9 changed files with 335 additions and 7 deletions
|
@ -33,6 +33,7 @@
|
|||
#include <srs_app_source.hpp>
|
||||
#include <srs_app_http_conn.hpp>
|
||||
#include <srs_core_autofree.hpp>
|
||||
#include <srs_app_statistic.hpp>
|
||||
|
||||
#include <sys/socket.h>
|
||||
using namespace std;
|
||||
|
@ -186,6 +187,9 @@ SrsQueueRecvThread::~SrsQueueRecvThread()
|
|||
srs_error_t SrsQueueRecvThread::start()
|
||||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
SrsStatistic* stat = SrsStatistic::instance();
|
||||
rtmp->set_perf(stat);
|
||||
|
||||
if ((err = trd.start()) != srs_success) {
|
||||
return srs_error_wrap(err, "queue recv thread");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue