#include "StdAfx.h"
|
#include "Thread_ControlIF.h"
|
|
#ifdef _DEBUG
|
#define new DEBUG_NEW
|
#undef THIS_FILE
|
static char THIS_FILE[] = __FILE__;
|
#endif
|
|
CThread_ControlIF::CThread_ControlIF(DWORD dwPeriod) : CTimerThreadPool(dwPeriod,1)
|
{
|
m_pS2M = NULL;
|
}
|
|
|
CThread_ControlIF::~CThread_ControlIF(void)
|
{
|
}
|
|
BOOL CThread_ControlIF::CreateThread()
|
{
|
BOOL bReturn = TRUE;
|
|
// Thread »ý¼º ÈÄ Thread ¼öÇà
|
bReturn = CreateTimerThread(this);
|
|
return bReturn;
|
}
|
|
void CThread_ControlIF::TimerThreadProcess(PVOID pParameter)
|
{
|
CThread_ControlIF* pThread = static_cast<CThread_ControlIF*>(pParameter);
|
if(pThread == NULL)
|
return;
|
|
if(pThread->m_pS2M != NULL)
|
pThread->m_pS2M->ControlProcess();
|
}
|