LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "../include/MemPooler.h"
|
||||
|
||||
class cIocpContext;
|
||||
|
||||
class cPooler
|
||||
{
|
||||
public:
|
||||
cPooler(void);
|
||||
~cPooler(void);
|
||||
|
||||
void Init();
|
||||
void Destory();
|
||||
|
||||
public:
|
||||
void Create( int32 maximum );
|
||||
|
||||
int32 GetCount() { return m_contextPool.GetCount(); }
|
||||
|
||||
cIocpContext* Pop();
|
||||
void Push( cIocpContext* context );
|
||||
|
||||
private:
|
||||
MemPooler<cIocpContext> m_contextPool;
|
||||
};
|
||||
Reference in new issue
Block a user