#pragma once
|
|
class AFX_EXT_CLASS CSThreadControl
|
{
|
public:
|
CSThreadControl(int nThreadCount=1);
|
virtual ~CSThreadControl(void);
|
|
int GetThreadCount() const;
|
|
private:
|
void CreateThread(int nThreadCount=1);
|
void CloseThread();
|
|
protected:
|
int m_nThreadCount;
|
int m_nRollback;
|
PTP_POOL m_pPool;
|
TP_CALLBACK_ENVIRON m_CallBackEnviron;
|
PTP_CLEANUP_GROUP m_pCleanupGroup;
|
};
|