forked from LosaDev/ls-2019-source
LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user