commit 2025-09-04 15:23 edit a bit ZCppMainTest/ZtCThreadEx_000.cpp
This commit is contained in:
@ -778,9 +778,7 @@ namespace ZNsMain
|
|||||||
&ZtCThreadEx::template ThreadFuncHelpKey
|
&ZtCThreadEx::template ThreadFuncHelpKey
|
||||||
<
|
<
|
||||||
TypeData
|
TypeData
|
||||||
>/*
|
> ,
|
||||||
&ZtCThreadEx::template ThreadFuncHelpKey*/
|
|
||||||
,
|
|
||||||
VP_CHelpKeyParam
|
VP_CHelpKeyParam
|
||||||
/*/////////*/ ); ///////////////////////////////////////
|
/*/////////*/ ); ///////////////////////////////////////
|
||||||
}/*
|
}/*
|
||||||
@ -798,21 +796,21 @@ namespace ZNsMain
|
|||||||
|
|
||||||
typedef ZtCHelpKeyParam2<TypeData1, TypeData2> ZCHelpKeyParam;
|
typedef ZtCHelpKeyParam2<TypeData1, TypeData2> ZCHelpKeyParam;
|
||||||
|
|
||||||
ZCHelpKeyParam* VP_CHelpKeyParam = new ZCHelpKeyParam(
|
ZCHelpKeyParam* VP_CHelpKeyParam = new ZCHelpKeyParam
|
||||||
|
(
|
||||||
ZCCheckRef1::PassData(AR_HelpKey1),
|
ZCCheckRef1::PassData(AR_HelpKey1),
|
||||||
ZCCheckRef2::PassData(AR_HelpKey2),
|
ZCCheckRef2::PassData(AR_HelpKey2),
|
||||||
*GetCDerivePtr()
|
*GetCDerivePtr()
|
||||||
/*/////////*/ ); /////////////////////////////////////
|
);
|
||||||
|
/////////////////////////////////////////////////////
|
||||||
|
|
||||||
return this->TThread::Make(
|
return this->TThread::Make
|
||||||
&ZtCThreadEx::template ThreadFuncHelpKey2
|
(
|
||||||
<
|
&ZtCThreadEx::template
|
||||||
TypeData1, TypeData2
|
ThreadFuncHelpKey2<TypeData1, TypeData2>,
|
||||||
>/*
|
|
||||||
&ZtCThreadEx::template ThreadFuncHelpKey2*/
|
|
||||||
,
|
|
||||||
VP_CHelpKeyParam
|
VP_CHelpKeyParam
|
||||||
/*/////////*/ ); ////////////////////////////////////////
|
);
|
||||||
|
/*:::::::::::::::::::::::::::::::::::::::::::::::::*/
|
||||||
}/*
|
}/*
|
||||||
template<typename THelpKey1, typename THelpKey2>
|
template<typename THelpKey1, typename THelpKey2>
|
||||||
bool Make(THelpKey1 AR_HelpKey1, THelpKey2 AR_HelpKey2) */
|
bool Make(THelpKey1 AR_HelpKey1, THelpKey2 AR_HelpKey2) */
|
||||||
@ -834,22 +832,22 @@ namespace ZNsMain
|
|||||||
typedef ZtCHelpKeyParam3
|
typedef ZtCHelpKeyParam3
|
||||||
<TypeData1, TypeData2, TypeData3> ZCHelpKeyParam ;
|
<TypeData1, TypeData2, TypeData3> ZCHelpKeyParam ;
|
||||||
|
|
||||||
ZCHelpKeyParam* VP_CHelpKeyParam = new ZCHelpKeyParam(
|
ZCHelpKeyParam* VP_CHelpKeyParam = new ZCHelpKeyParam
|
||||||
|
(
|
||||||
ZCCheckRef1::PassData(AR_HelpKey1),
|
ZCCheckRef1::PassData(AR_HelpKey1),
|
||||||
ZCCheckRef2::PassData(AR_HelpKey2),
|
ZCCheckRef2::PassData(AR_HelpKey2),
|
||||||
ZCCheckRef3::PassData(AR_HelpKey3),
|
ZCCheckRef3::PassData(AR_HelpKey3),
|
||||||
*GetCDerivePtr()
|
*GetCDerivePtr()
|
||||||
/*/////////*/ ); /////////////////////////////////////
|
);
|
||||||
|
/////////////////////////////////////////////////////
|
||||||
|
|
||||||
return this->TThread::Make(
|
return this->TThread::Make /*::::::::::::::::::::::*/
|
||||||
&ZtCThreadEx::template ThreadFuncHelpKey3
|
(
|
||||||
<
|
&ZtCThreadEx::template
|
||||||
TypeData1, TypeData2, TypeData3
|
ThreadFuncHelpKey3<TypeData1, TypeData2, TypeData3> ,
|
||||||
>/*
|
|
||||||
&ZtCThreadEx::template ThreadFuncHelpKey3*/
|
|
||||||
,
|
|
||||||
VP_CHelpKeyParam
|
VP_CHelpKeyParam
|
||||||
/*/////////*/ ); ////////////////////////////////////////
|
);
|
||||||
|
/*:::::::::::::::::::::::::::::::::::::::::::::::::*/
|
||||||
}/*
|
}/*
|
||||||
template
|
template
|
||||||
<typename THelpKey1 , typename THelpKey2 , typename THelpKey3 >
|
<typename THelpKey1 , typename THelpKey2 , typename THelpKey3 >
|
||||||
|
@ -55,6 +55,20 @@ namespace ZNsMain
|
|||||||
cout<<"* Init2() : "<<AR_KeyCStr<<", "<<AR_KeyCStr2<<endl;
|
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>*/
|
class CThreadMy : public ZNsMain::ZtCThreadEx<CThreadMy>*/
|
||||||
|
|
||||||
@ -64,12 +78,14 @@ namespace ZNsMain
|
|||||||
CThreadMy VO_CThreadMy ;
|
CThreadMy VO_CThreadMy ;
|
||||||
ZCStringStd VO_ZCStringStd1("Help Data1");
|
ZCStringStd VO_ZCStringStd1("Help Data1");
|
||||||
ZCStringStd VO_ZCStringStd2("Help Data2");
|
ZCStringStd VO_ZCStringStd2("Help Data2");
|
||||||
|
ZCStringStd VO_ZCStringStd3("Help Data3");
|
||||||
|
|
||||||
VO_CThreadMy.Make(ZftMCP(VO_ZCStringStd1));
|
VO_CThreadMy.Make(ZftMCP(VO_ZCStringStd1));
|
||||||
cout<<"# Press Enter to continue."<<endl; cin.get();
|
cout<<"# Press Enter to continue."<<endl; cin.get();
|
||||||
VO_CThreadMy.Make(ZftMCP(VO_ZCStringStd1), ZftMCP(VO_ZCStringStd2));
|
VO_CThreadMy.Make(ZftMCP(VO_ZCStringStd1), ZftMCP(VO_ZCStringStd2));
|
||||||
cout<<"# Press Enter to continue."<<endl; cin.get();
|
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;
|
return 0;
|
||||||
}/*
|
}/*
|
||||||
|
Reference in New Issue
Block a user