commit 2025-09-11 00:22 edit a bit ZCppMain/ZtSimList.H
This commit is contained in:
@ -143,12 +143,12 @@ namespace ZNsMain
|
|||||||
|
|
||||||
ReAlloc(rhs.ml_UseSize, false);
|
ReAlloc(rhs.ml_UseSize, false);
|
||||||
|
|
||||||
ml_UseSize=rhs.ml_UseSize;
|
ml_UseSize = rhs.ml_UseSize;
|
||||||
ml_AllSize=rhs.ml_AllSize;
|
ml_AllSize = rhs.ml_AllSize;
|
||||||
|
|
||||||
for(TypeSize i=0; i<ml_UseSize; ++i)
|
for(TypeSize i=0; i<ml_UseSize; ++i)
|
||||||
{
|
{
|
||||||
mp_TypeArr[i]=rhs.mp_TypeArr[i];
|
mp_TypeArr[i] = rhs.mp_TypeArr[i];
|
||||||
}/*
|
}/*
|
||||||
for(TypeSize i=0; i<ml_UseSize; ++i)*/
|
for(TypeSize i=0; i<ml_UseSize; ++i)*/
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ namespace ZNsMain
|
|||||||
{
|
{
|
||||||
if(AL_NewUseSize>=0 && AL_NewUseSize<=ml_AllSize)
|
if(AL_NewUseSize>=0 && AL_NewUseSize<=ml_AllSize)
|
||||||
{
|
{
|
||||||
ml_UseSize=AL_NewUseSize;
|
ml_UseSize = AL_NewUseSize;
|
||||||
}/*
|
}/*
|
||||||
if(AL_NewUseSize>=0 && AL_NewUseSize<=ml_AllSize)*/
|
if(AL_NewUseSize>=0 && AL_NewUseSize<=ml_AllSize)*/
|
||||||
}/*
|
}/*
|
||||||
|
@ -236,7 +236,7 @@ namespace ZNsMain
|
|||||||
friend class ZCLink ;
|
friend class ZCLink ;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#ifdef _REENTRANT_MUTEX
|
#ifdef _REENTRANT_MUTEX
|
||||||
ZNsMain::ZCMutexSmallInit mo_Mutex ;
|
ZNsMain::ZCMutexSmallInit mo_Mutex ;
|
||||||
#endif //_REENTRANT_MUTEX
|
#endif //_REENTRANT_MUTEX
|
||||||
|
|
||||||
@ -255,11 +255,11 @@ namespace ZNsMain
|
|||||||
|
|
||||||
ZCLink* GetOneLink()
|
ZCLink* GetOneLink()
|
||||||
{
|
{
|
||||||
#ifdef _REENTRANT_MUTEX
|
#ifdef _REENTRANT_MUTEX
|
||||||
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
||||||
#endif //_REENTRANT_MUTEX
|
#endif //_REENTRANT_MUTEX
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
ZNsMain::ZCCheckAlloc::ZCAllowAlloc CAllowAllocObj;
|
ZNsMain::ZCCheckAlloc::ZCAllowAlloc CAllowAllocObj;
|
||||||
#endif //_DEBUG
|
#endif //_DEBUG
|
||||||
|
|
||||||
@ -318,8 +318,8 @@ namespace ZNsMain
|
|||||||
}
|
}
|
||||||
//while(true)
|
//while(true)
|
||||||
|
|
||||||
APR_HeadLink=mp_NoUseHeadLink ;
|
APR_HeadLink = mp_NoUseHeadLink ;
|
||||||
APR_TailLink=mp_NoUseTailLink ;
|
APR_TailLink = mp_NoUseTailLink ;
|
||||||
|
|
||||||
mp_NoUseHeadLink =0;
|
mp_NoUseHeadLink =0;
|
||||||
mp_NoUseTailLink =0;
|
mp_NoUseTailLink =0;
|
||||||
|
Reference in New Issue
Block a user