You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
652 B
C++
33 lines
652 B
C++
#pragma once
|
|
|
|
#include "DllDefines.h"
|
|
|
|
class MCCTRDLLCLASS CRunTask
|
|
{
|
|
public:
|
|
DWORD GetThreadPriority();
|
|
bool SetThreadPriority(int nPriority);
|
|
bool IsTerminate(void);
|
|
CRunTask();
|
|
virtual ~CRunTask();
|
|
|
|
// Operations
|
|
virtual bool InitInstance();
|
|
virtual UINT RunThread() = 0;
|
|
|
|
// Run Thread Control
|
|
bool Begin();
|
|
bool Resume();
|
|
bool Suspend();
|
|
bool DeleteThread();
|
|
void SetThreadName(const char* threadName);
|
|
static void SetThreadName(DWORD dwThreadID, const char* threadName);
|
|
|
|
private:
|
|
|
|
CWinThread* m_pThread{ nullptr };
|
|
bool m_bSuspend{ false };
|
|
bool m_bTerminate{ false };
|
|
|
|
};
|