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

Perf: Refine the stat

This commit is contained in:
winlin 2021-02-26 21:35:51 +08:00
parent d6c0117870
commit e79293a3bc
6 changed files with 75 additions and 43 deletions

View file

@ -328,6 +328,8 @@ public:
// Create shared ptr message from RAW payload.
// @remark Note that the header is set to zero.
virtual void wrap(char* payload, int size);
// Decrease the reference, if the last one, free it.
void unwrap();
// Get current reference count.
// when this object created, count set to 0.
// if copy() this object, count increase 1.