?? thread.h
字號:
// ***************************************************************
// Thread version: 1.0 · date: 06/30/2006
// -------------------------------------------------------------
// Wrapper Thread operation
// -------------------------------------------------------------
// Copyright (C) 2001-2006 - Midapexsoft All Rights Reserved
// ***************************************************************
//
// ***************************************************************
#pragma once
class CThread
{
public:
CThread();
virtual ~CThread();
HANDLE GetHandle() const;
void Wait() const;
bool Wait(DWORD timeoutMillis) const;
void Start();
void Terminate(DWORD exitCode = 0);
void SetPriority(int priority);
unsigned int GetThreadID() const { return m_dwId;}
protected:
//it can be overrided for your purpose
virtual int Run() = 0;
private :
static unsigned int __stdcall ThreadFunction(void *pV);
HANDLE m_hThread;
unsigned int m_dwId;
// No copies
CThread(const CThread &rhs);
CThread &operator=(const CThread &rhs);
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -