commit 2025-08-24 11:07 edit a bit ZCppMain/ZMainHead.H etc

This commit is contained in:
2025-08-24 11:07:13 +09:00
parent 949c731b87
commit a8b73f68de
5 changed files with 72 additions and 14 deletions

View File

@ -680,19 +680,19 @@ namespace ZNsMain
#if defined(_WIN) && defined(_REENTRANT)
static CMutexSmallInit& GetCMutexSmallInit()
static ZCMutexSmallInit& GetCMutexSmallInit()
{
static CMutexSmallInit SO_CMutexSmallInit; return SO_CMutexSmallInit;
static ZCMutexSmallInit SO_CMutexSmallInit; return SO_CMutexSmallInit;
}/*
static CMutexSmallInit& GetCMutexSmallInit()*/
static ZCMutexSmallInit& GetCMutexSmallInit()*/
#endif //defined(_WIN) && defined(_REENTRANT)
static bool SetLocalTimeObj(time_t AL_TimeSec,struct tm& ARR_StTime)
static bool SetLocalTimeObj(time_t AL_TimeSec, struct tm& ARR_StTime)
{
#ifdef _REENTRANT
#ifdef _WIN
ZNsMain::CMutexSmallLock VO_CMutexSmallLock(GetCMutexSmallInit());
ZNsMain::ZCMutexSmallLock VO_CMutexSmallLock(GetCMutexSmallInit());
struct tm* VP_StTime = ::localtime(&AL_TimeSec);
@ -722,7 +722,7 @@ namespace ZNsMain
{
#if defined(_REENTRANT)
#ifdef _WIN
ZNsMain::CMutexSmallLock
ZNsMain::ZCMutexSmallLock
VO_CMutexSmallLock( GetCMutexSmallInit() );
struct tm* VP_StTime = ::gmtime(&AL_TimeSec);