Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
898 B

// MemDeleteQueue.h: interface for the CMemDeleteQueue class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MEMDELETEQUEUE_H__C8412BD8_F58D_4CB6_81F9_FAA4ABD87583__INCLUDED_)
#define AFX_MEMDELETEQUEUE_H__C8412BD8_F58D_4CB6_81F9_FAA4ABD87583__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SmartBuffer.h"
#include <tchar.h>
typedef CSmartBuffer<void*> DelQueue;
class CMemDeleteQueue
{
public:
void Flush();
CMemDeleteQueue();
virtual ~CMemDeleteQueue();
void Delete(void* ptr);
void DeleteArray(TCHAR* ptr);
protected:
void FlushDelQueue();
void FlushDelArrayQueue();
int m_QueueSize;
DelQueue m_DelQueue;
DelQueue m_DelArrayQueue;
};
extern CMemDeleteQueue g_DelQueue;
#endif // !defined(AFX_MEMDELETEQUEUE_H__C8412BD8_F58D_4CB6_81F9_FAA4ABD87583__INCLUDED_)