Skip to main content
ATL Server Library Reference 
CDataSourceCache Class 

This class caches open data connections and implements the IDataSourceCache interface.


template <
   class TCritSec = CComFakeCriticalSection
>
class CDataSourceCache :
   public IDataSourceCache,
   public CComObjectRootEx< CComGlobalsThreadModel >

Parameters

TCritSec

The critical section class used to synchronize access to the data held by this class. The class used as the default, CComFakeCriticalSection, provides no synchronization. If the data source cache is to be accessed from multiple threads, set this parameter to CComCriticalSection.

Use CDataSourceCache as a template argument to one of ATL's object classes, such as CComObject or CComObjectGlobal, and instantiate that class.

Header: atlcache.h