[Network] refactoring

This commit is contained in:
Maxim Kadushkin
2022-01-24 19:27:17 +03:00
parent 536b080451
commit e28e8b56b1
3 changed files with 9 additions and 28 deletions

View File

@ -96,16 +96,15 @@ namespace NSThreads
{
friend class CBaseThread;
private:
HANDLE m_thread;
HANDLE m_thread = nullptr;
public:
__native_thread() : CThreadDescriptor()
{
m_thread = NULL;
}
virtual ~__native_thread()
{
if (m_thread != NULL)
if (m_thread)
{
CloseHandle(m_thread);
m_thread = NULL;