commit 2025-09-04 15:23 edit a bit ZCppMainTest/ZtCThreadEx_000.cpp

This commit is contained in:
2025-09-04 15:23:47 +09:00
parent eb09153a87
commit 9f792d27c1
2 changed files with 47 additions and 33 deletions

View File

@ -778,9 +778,7 @@ namespace ZNsMain
&ZtCThreadEx::template ThreadFuncHelpKey
<
TypeData
>/*
&ZtCThreadEx::template ThreadFuncHelpKey*/
,
> ,
VP_CHelpKeyParam
/*/////////*/ ); ///////////////////////////////////////
}/*
@ -798,21 +796,21 @@ namespace ZNsMain
typedef ZtCHelpKeyParam2<TypeData1, TypeData2> ZCHelpKeyParam;
ZCHelpKeyParam* VP_CHelpKeyParam = new ZCHelpKeyParam(
ZCCheckRef1::PassData(AR_HelpKey1),
ZCCheckRef2::PassData(AR_HelpKey2),
*GetCDerivePtr()
/*/////////*/ ); /////////////////////////////////////
ZCHelpKeyParam* VP_CHelpKeyParam = new ZCHelpKeyParam
(
ZCCheckRef1::PassData(AR_HelpKey1),
ZCCheckRef2::PassData(AR_HelpKey2),
*GetCDerivePtr()
);
/////////////////////////////////////////////////////
return this->TThread::Make(
&ZtCThreadEx::template ThreadFuncHelpKey2
<
TypeData1, TypeData2
>/*
&ZtCThreadEx::template ThreadFuncHelpKey2*/
,
VP_CHelpKeyParam
/*/////////*/ ); ////////////////////////////////////////
return this->TThread::Make
(
&ZtCThreadEx::template
ThreadFuncHelpKey2<TypeData1, TypeData2>,
VP_CHelpKeyParam
);
/*:::::::::::::::::::::::::::::::::::::::::::::::::*/
}/*
template<typename THelpKey1, typename THelpKey2>
bool Make(THelpKey1 AR_HelpKey1, THelpKey2 AR_HelpKey2) */
@ -834,22 +832,22 @@ namespace ZNsMain
typedef ZtCHelpKeyParam3
<TypeData1, TypeData2, TypeData3> ZCHelpKeyParam ;
ZCHelpKeyParam* VP_CHelpKeyParam = new ZCHelpKeyParam(
ZCCheckRef1::PassData(AR_HelpKey1),
ZCCheckRef2::PassData(AR_HelpKey2),
ZCCheckRef3::PassData(AR_HelpKey3),
*GetCDerivePtr()
/*/////////*/ ); /////////////////////////////////////
ZCHelpKeyParam* VP_CHelpKeyParam = new ZCHelpKeyParam
(
ZCCheckRef1::PassData(AR_HelpKey1),
ZCCheckRef2::PassData(AR_HelpKey2),
ZCCheckRef3::PassData(AR_HelpKey3),
*GetCDerivePtr()
);
/////////////////////////////////////////////////////
return this->TThread::Make(
&ZtCThreadEx::template ThreadFuncHelpKey3
<
TypeData1, TypeData2, TypeData3
>/*
&ZtCThreadEx::template ThreadFuncHelpKey3*/
,
VP_CHelpKeyParam
/*/////////*/ ); ////////////////////////////////////////
return this->TThread::Make /*::::::::::::::::::::::*/
(
&ZtCThreadEx::template
ThreadFuncHelpKey3<TypeData1, TypeData2, TypeData3> ,
VP_CHelpKeyParam
);
/*:::::::::::::::::::::::::::::::::::::::::::::::::*/
}/*
template
<typename THelpKey1 , typename THelpKey2 , typename THelpKey3 >

View File

@ -55,6 +55,20 @@ namespace ZNsMain
cout<<"* Init2() : "<<AR_KeyCStr<<", "<<AR_KeyCStr2<<endl;
}
void Init(ZCStringStd& AR_KeyCStr, ZCStringStd& AR_KeyCStr2, ZCStringStd& AR_KeyCStr3)
{
cout<<"* Init3() : "<<AR_KeyCStr<<", "<<AR_KeyCStr2<<", "<<AR_KeyCStr3<<endl;
}
void Exec(ZCStringStd& AR_KeyCStr, ZCStringStd& AR_KeyCStr2, ZCStringStd& AR_KeyCStr3)
{
cout<<"* Init3() : "<<AR_KeyCStr<<", "<<AR_KeyCStr2<<", "<<AR_KeyCStr3<<endl;
}
void Fini(ZCStringStd& AR_KeyCStr, ZCStringStd& AR_KeyCStr2, ZCStringStd& AR_KeyCStr3)
{
cout<<"* Init3() : "<<AR_KeyCStr<<", "<<AR_KeyCStr2<<", "<<AR_KeyCStr3<<endl;
}
};/*
class CThreadMy : public ZNsMain::ZtCThreadEx<CThreadMy>*/
@ -64,12 +78,14 @@ namespace ZNsMain
CThreadMy VO_CThreadMy ;
ZCStringStd VO_ZCStringStd1("Help Data1");
ZCStringStd VO_ZCStringStd2("Help Data2");
ZCStringStd VO_ZCStringStd3("Help Data3");
VO_CThreadMy.Make(ZftMCP(VO_ZCStringStd1));
cout<<"# Press Enter to continue."<<endl; cin.get();
VO_CThreadMy.Make(ZftMCP(VO_ZCStringStd1), ZftMCP(VO_ZCStringStd2));
cout<<"# Press Enter to continue."<<endl; cin.get();
VO_CThreadMy.Make(ZftMCP(VO_ZCStringStd1), ZftMCP(VO_ZCStringStd2), ZftMCP(VO_ZCStringStd3));
cout<<"# Press Enter to continue."<<endl; cin.get();
return 0;
}/*