mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-16 02:46:08 -04:00
Make more methods in meme private
This commit is contained in:
6
Mem.h
6
Mem.h
@ -59,7 +59,6 @@ class Mem {
|
||||
void incrementOOMCount() { m_outOfMems++; }
|
||||
|
||||
// who underan/overran their buffers?
|
||||
int printBreech ( int32_t i ) ;
|
||||
int printBreeches () ;
|
||||
// print mem usage stats
|
||||
int printMem ( ) ;
|
||||
@ -67,8 +66,6 @@ class Mem {
|
||||
bool rmMem ( void *mem , int32_t size , const char *note ) ;
|
||||
bool lblMem ( void *mem , int32_t size , const char *note );
|
||||
|
||||
int32_t getMemSlot ( void *mem );
|
||||
|
||||
void addnew ( void *ptr , int32_t size , const char *note ) ;
|
||||
void delnew ( void *ptr , int32_t size , const char *note ) ;
|
||||
|
||||
@ -81,6 +78,8 @@ class Mem {
|
||||
const char *m_maxAllocBy; // the biggest single alloc ever done
|
||||
|
||||
private:
|
||||
int32_t getMemSlot(void *mem);
|
||||
|
||||
// currently used mem (estimate)
|
||||
int64_t m_used;
|
||||
|
||||
@ -92,6 +91,7 @@ private:
|
||||
uint32_t m_memtablesize;
|
||||
|
||||
int printBreeches_unlocked();
|
||||
int printBreech(int32_t i);
|
||||
};
|
||||
|
||||
extern class Mem g_mem;
|
||||
|
Reference in New Issue
Block a user