DragonNest/Client/EtFileSystemTool/Thread.h
2024-12-20 16:56:44 +08:00

26 lines
748 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
class Thread
{
public:
Thread();
virtual ~Thread();
bool Start();
bool Terminate( DWORD nExitCode );
bool WaitForTerminate( DWORD nTimeout = INFINITE );
protected:
virtual void Run() = 0;
HANDLE m_hHandleThread;
DWORD m_nThreadID;
bool m_bThreadLoop;
private:
static DWORD WINAPI _Runner( LPVOID pParam );
};