commit 2025-09-07 00:27 add ZCppMainTest/ZtCThreadEx_002_MutexCond.cpp

This commit is contained in:
2025-09-07 00:27:38 +09:00
parent 28b6010c51
commit 154890d939
5 changed files with 257 additions and 16 deletions

View File

@ -2380,7 +2380,7 @@ namespace ZNsMain
{
if(::SleepConditionVariableCS(&mo_CondVar, &mo_CritSect, AI_Mili)==TRUE)
{
return ZNsEnum::ZEThread_OK; /*#####################################*/
return ZNsEnum::ZEThread_OK;
}/*
if(::SleepConditionVariableCS(&mo_CondVar, &mo_CritSect, AI_Mili)==TRUE)*/

View File

@ -222,11 +222,11 @@ namespace ZNsMain
inline bool ZfPutEnv(const char* APC_EnvName, const char* APC_Value)
{
#if __VISUAL_CPP_VER__>=200500
#if __VISUAL_CPP_VER__>=200500
return ::_putenv_s(APC_EnvName, APC_Value)==0;
#else //__VISUAL_CPP_VER__<200500
#else //__VISUAL_CPP_VER__<=200500
std::string VO_CStringEnv;
@ -250,9 +250,9 @@ namespace ZNsMain
{
// 표준 출력에 쓴다.
DWORD VDW_WrittenSize=0;
DWORD VDW_WrittenSize= 0 ;
const bool CB_IsOK = //////////////////////////////////////////
const bool CB_IsOK = ////////////////////////////////////////
(
::WriteFile
(
@ -263,7 +263,7 @@ namespace ZNsMain
);
///////////////////////////////////////////////////////////////
if(CB_IsOK==false) return -1; return VDW_WrittenSize;
if(CB_IsOK==false) return -1; return VDW_WrittenSize;
}/*
inline long ZfWriteStdOut(LPCVOID APC_Buffer, DWORD ADW_BuffSize, LPOVERLAPPED AP_Overlapped=NULL)*/