LosaDev source snapshot 2019

This commit is contained in:
LosaDev committed 2026-11-07 13:30:45 +07:00
commit c198676e97
20588 files changed
+8812878

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
#pragma once
#include "Thread.h"
class cWorkerThread;
class cCommandThread;
class cConnectorThread;
class cModule
{
public:
cModule();
virtual ~cModule();
void Init();
void Destroy();
public:
// start/close
BOOL StartModule( E_THREADID threadId, uint32 count );
void EndModule();
protected:
// thread module
BOOL StartCommandThread( uint32 count = 1 );
BOOL StartWorkerThread( uint32 count = 2 );
BOOL StartConnectorThread( uint32 count = 1 );
void CloseCommandThread();
void CloseWorkerThread();
void CloseConnectorThread();
private:
cWorkerThread* m_workerThread;
cCommandThread* m_commandThread;
cConnectorThread* m_connectorThread;
};