diff --git a/ZCppMainTest/ZtCThreadEx_000.cpp b/ZCppMainTest/ZtCThreadEx_000.cpp index d364c3b..a4ef6e5 100644 --- a/ZCppMainTest/ZtCThreadEx_000.cpp +++ b/ZCppMainTest/ZtCThreadEx_000.cpp @@ -26,9 +26,11 @@ namespace ZNsMain class CThreadMy : public ZNsMain::ZtCThreadEx { - public: + public : typedef ZNsMain::ZtCThreadEx TypeBase; - public: + public : + friend class ZNsMain:: ZtCThreadEx; + private: void Init() { @@ -106,6 +108,7 @@ namespace ZNsMain cout<<"* Init3() : "<*/ diff --git a/ZCppMainTest/ZtCThreadEx_001.cpp b/ZCppMainTest/ZtCThreadEx_001.cpp index fc482cd..79b7fb3 100644 --- a/ZCppMainTest/ZtCThreadEx_001.cpp +++ b/ZCppMainTest/ZtCThreadEx_001.cpp @@ -25,11 +25,13 @@ namespace ZNsMain class ZCThreadMy : public ZNsMain::ZtCThreadEx { - public: + public : typedef ZNsMain::ZtCThreadEx TypeBase; - public: + public : + friend class ZNsMain:: ZtCThreadEx; + public : static int GI_CallCnt; - public: + private: void Init() { @@ -104,6 +106,7 @@ namespace ZNsMain cout<<"* Init3() : "<<++ARRI_CallCnt<<", "<*/