cthread.h

来自「这是一个编辑器 这是一个编辑器」· C头文件 代码 · 共 45 行

H
45 行
字号

/*****************************************************************************


  CThread
  -------

  Up to now a boring micro thread handling class.

  by yoda

  WWW:      y0da.cjb.net
  E-mail:   LordPE@gmx.net

  You are allowed to use this source code in your own projects if you mention
  my name.

*****************************************************************************/

#ifndef __CThread_h__
#define __CThread_h__

#include <windows.h>

//
// class CThread
//
class CThread
{

public:
	CThread();
	~CThread();
	BOOL        Cleanup();
	BOOL        Create(LPTHREAD_START_ROUTINE pProc, void* pArg, DWORD dwFlags);
	DWORD       GetThreadId();
	HANDLE      GetThreadHandle();

private:
	DWORD       dwThreadId;
	HANDLE      hThread;    // indicates whether a thread was created successfully

};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?