commit 2025-09-04 22:55 edit a bit ZCppMainTest/ZtCThreadEx_000.cpp & ZCppMainTest/ZtCThreadEx_001.cpp

This commit is contained in:
2025-09-04 22:55:30 +09:00
parent 41e78aabc1
commit bf1d0f2222
2 changed files with 11 additions and 5 deletions

View File

@ -29,6 +29,8 @@ namespace ZNsMain
public : public :
typedef ZNsMain::ZtCThreadEx<CThreadMy> TypeBase; typedef ZNsMain::ZtCThreadEx<CThreadMy> TypeBase;
public : public :
friend class ZNsMain:: ZtCThreadEx<CThreadMy>;
private:
void Init() void Init()
{ {
@ -106,6 +108,7 @@ namespace ZNsMain
cout<<"* Init3() : "<<AR_KeyCStr<<", "<<AR_KeyCStr2<<", "<<AR_KeyCStr3<<endl; cout<<"* Init3() : "<<AR_KeyCStr<<", "<<AR_KeyCStr2<<", "<<AR_KeyCStr3<<endl;
} }
private:
};/* };/*
class CThreadMy : public ZNsMain::ZtCThreadEx<CThreadMy>*/ class CThreadMy : public ZNsMain::ZtCThreadEx<CThreadMy>*/

View File

@ -28,8 +28,10 @@ namespace ZNsMain
public : public :
typedef ZNsMain::ZtCThreadEx<ZCThreadMy> TypeBase; typedef ZNsMain::ZtCThreadEx<ZCThreadMy> TypeBase;
public : public :
static int GI_CallCnt; friend class ZNsMain:: ZtCThreadEx<ZCThreadMy>;
public : public :
static int GI_CallCnt;
private:
void Init() void Init()
{ {
@ -104,6 +106,7 @@ namespace ZNsMain
cout<<"* Init3() : "<<++ARRI_CallCnt<<", "<<ARRI_CallCnt2<<", "<<ARRI_CallCnt3<<endl; cout<<"* Init3() : "<<++ARRI_CallCnt<<", "<<ARRI_CallCnt2<<", "<<ARRI_CallCnt3<<endl;
} }
private:
};/* };/*
class ZCThreadMy : public ZNsMain::ZtCThreadEx<ZCThreadMy>*/ class ZCThreadMy : public ZNsMain::ZtCThreadEx<ZCThreadMy>*/