mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine typo for core
This commit is contained in:
parent
98adbc4130
commit
735176cab4
2 changed files with 6 additions and 7 deletions
|
@ -27,7 +27,7 @@
|
|||
#include <srs_core.hpp>
|
||||
|
||||
/**
|
||||
* auto free the instance in the current scope, for instance, MyClass* ptr,
|
||||
* To free the instance in the current scope, for instance, MyClass* ptr,
|
||||
* which is a ptr and this class will:
|
||||
* 1. free the ptr.
|
||||
* 2. set ptr to NULL.
|
||||
|
@ -56,9 +56,6 @@ private:
|
|||
T** ptr;
|
||||
bool is_array;
|
||||
public:
|
||||
/**
|
||||
* auto delete the ptr.
|
||||
*/
|
||||
impl_SrsAutoFree(T** p, bool array) {
|
||||
ptr = p;
|
||||
is_array = array;
|
||||
|
|
|
@ -28,15 +28,17 @@
|
|||
|
||||
#ifdef SRS_AUTO_MEM_WATCH
|
||||
|
||||
#warning "MemoryWatch is deprecated."
|
||||
|
||||
#include <string>
|
||||
|
||||
// watch the specified memory.
|
||||
// Watch the specified memory.
|
||||
extern void srs_memory_watch(void* ptr, std::string category, int size);
|
||||
|
||||
// unwatch the specified memory.
|
||||
// Unwatch the specified memory.
|
||||
extern void srs_memory_unwatch(void* ptr);
|
||||
|
||||
// report the memory watch.
|
||||
// Report the memory watch.
|
||||
extern void srs_memory_report();
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue