LWQ
2025-07-14 52d230fd0eb38adc5c6f4c6d6ed3786a3c19354d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#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();            
}