mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 21:40:36 -04:00
suppressed potential SIGSEGV as exit time
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4068 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3ae378d9b9
commit
800cc281c5
2 changed files with 23 additions and 0 deletions
|
@ -85,6 +85,8 @@ namespace RsMemoryManagement
|
|||
void deallocate(void *p,size_t size) ;
|
||||
|
||||
void printStatistics() const ;
|
||||
|
||||
bool _active ;
|
||||
private:
|
||||
std::map<int,FixedAllocator*> _pool ;
|
||||
FixedAllocator *_lastAlloc ;
|
||||
|
@ -105,6 +107,8 @@ namespace RsMemoryManagement
|
|||
private:
|
||||
static SmallObjectAllocator _allocator ;
|
||||
static RsMutex _mtx;
|
||||
|
||||
friend class SmallObjectAllocator ;
|
||||
};
|
||||
|
||||
extern void printStatistics() ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue