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:
parent
2ec03bf56a
commit
edbabf840d
3 changed files with 36 additions and 33 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue