ランタイム
Thread.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include "Mix/Noncopyable.h"
7 
8 namespace Mix{
9 
13  {
14  private:
15  HANDLE m_hThread;
16  UInt32 m_ID;
17  UInt32 m_SuspendCount;
18  void ( *m_pFunc )( void* );
19  void* m_pArgument;
20 
21  public:
23  Thread( void );
25  virtual ~Thread( void );
26 
27  private:
28  static unsigned __stdcall Entry( void* pArg );
29 
30  public:
36  Boolean Start( void( *pFunc )( void* ), void* pArgument, Boolean bSuspend = False );
38  void Join( void );
39 
41  void Resume( void );
43  void Suspend( void );
46  UInt32 GetSuspendCount( void ) const;
47 
50  UInt32 GetID( void ) const;
51  };
52 
53 }
スレッドクラス
Definition: Thread.h:12
コピー禁止クラス
Definition: Noncopyable.h:10
unsigned int UInt32
符号無し32ビット整数
Definition: Common.h:68
ミックス
Definition: AtomicValue.h:6
#define False
Boolean型の偽値
Definition: Common.h:108
コピー禁止クラスインクルードファイル
BOOL Boolean
32ビットブーリアン
Definition: Common.h:102
#define _MIX_DLL_API
DLLインポート定義
Definition: Common.h:38