mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Stat: Fix build fail for stat of timer and dispose
This commit is contained in:
parent
941a9aaf7a
commit
5b8eea8cc5
2 changed files with 12 additions and 0 deletions
|
@ -41,6 +41,7 @@ using namespace std;
|
|||
SrsPps* _srs_pps_ids = new SrsPps(_srs_clock);
|
||||
SrsPps* _srs_pps_fids = new SrsPps(_srs_clock);
|
||||
SrsPps* _srs_pps_fids_level0 = new SrsPps(_srs_clock);
|
||||
SrsPps* _srs_pps_dispose = new SrsPps(_srs_clock);
|
||||
|
||||
ISrsDisposingHandler::ISrsDisposingHandler()
|
||||
{
|
||||
|
@ -343,6 +344,8 @@ void SrsResourceManager::do_clear()
|
|||
i, conn->desc().c_str(), conn, (int)conns_.size(), (int)copy.size(), (int)zombies_.size());
|
||||
}
|
||||
|
||||
++_srs_pps_dispose->sugar;
|
||||
|
||||
dispose(conn);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,11 @@ using namespace std;
|
|||
#include <srs_kernel_utility.hpp>
|
||||
#include <srs_protocol_utility.hpp>
|
||||
|
||||
#include <srs_protocol_kbps.hpp>
|
||||
|
||||
SrsPps* _srs_pps_cids_get = new SrsPps(_srs_clock);
|
||||
SrsPps* _srs_pps_cids_set = new SrsPps(_srs_clock);
|
||||
|
||||
#define SRS_BASIC_LOG_SIZE 8192
|
||||
|
||||
SrsThreadContext::SrsThreadContext()
|
||||
|
@ -51,11 +56,15 @@ SrsContextId SrsThreadContext::generate_id()
|
|||
|
||||
const SrsContextId& SrsThreadContext::get_id()
|
||||
{
|
||||
++_srs_pps_cids_get->sugar;
|
||||
|
||||
return cache[srs_thread_self()];
|
||||
}
|
||||
|
||||
const SrsContextId& SrsThreadContext::set_id(const SrsContextId& v)
|
||||
{
|
||||
++_srs_pps_cids_set->sugar;
|
||||
|
||||
srs_thread_t self = srs_thread_self();
|
||||
|
||||
if (cache.find(self) == cache.end()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue