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

Refine object cache.

This commit is contained in:
winlin 2021-02-27 12:32:46 +08:00
parent 2ec03bf56a
commit edbabf840d
3 changed files with 36 additions and 33 deletions

View file

@ -313,7 +313,7 @@ public:
virtual ~SrsSharedPtrMessage();
public:
// For object cache to reset and reuse it.
bool reset() { return true; }
bool recycle() { return true; }
// Create shared ptr message,
// copy header, manage the payload of msg,
// set the payload to NULL to prevent double free.