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.

26 lines
1.0 KiB

  1. //---------------------------------------------------------------------------
  2. // CacheList.h - manages list of CRenderCache objects
  3. //---------------------------------------------------------------------------
  4. #pragma once
  5. //---------------------------------------------------------------------------
  6. #include "Cache.h"
  7. //---------------------------------------------------------------------------
  8. extern DWORD _tls_CacheListIndex;
  9. //---------------------------------------------------------------------------
  10. class CCacheList
  11. {
  12. //---- methods ----
  13. public:
  14. CCacheList();
  15. ~CCacheList();
  16. HRESULT GetCacheObject(CRenderObj *pRenderObj, int iSlot, CRenderCache **ppCache);
  17. HRESULT Resize(int iMaxSlot);
  18. //---- data ----
  19. protected:
  20. CSimpleArray<CRenderCache *> _CacheEntries;
  21. };
  22. //---------------------------------------------------------------------------
  23. CCacheList *GetTlsCacheList(BOOL fOkToCreate);
  24. //---------------------------------------------------------------------------