commit 2025-09-04 14:13 add ZCppMain/ZCProcess.H & ZCppMainTest/ZtCThreadEx_000.cpp
This commit is contained in:
1556
ZCppMain/ZCProcess.H
Normal file
1556
ZCppMain/ZCProcess.H
Normal file
File diff suppressed because it is too large
Load Diff
4678
ZCppMain/ZCProcess_Linux.H
Normal file
4678
ZCppMain/ZCProcess_Linux.H
Normal file
File diff suppressed because it is too large
Load Diff
3151
ZCppMain/ZCProcess_Win.H
Normal file
3151
ZCppMain/ZCProcess_Win.H
Normal file
File diff suppressed because it is too large
Load Diff
@ -113,7 +113,7 @@ namespace ZNsMain
|
||||
TypeLength VL_NeedSize = VL_ThisSize +
|
||||
(AL_Replace-AL_Searched) * VL_PosListSize ;
|
||||
|
||||
TypePChar VPC_ThisStart = this->data() ;
|
||||
TypePChar VPC_ThisStart = const_cast<char*>(this->data()) ;
|
||||
IterEasyID VH_IterEasyID = AR_CPosList.ItHID();
|
||||
TypeLength VL_SearchedPos= 0 ;
|
||||
TypeLength VL_SearchedPre= 0 ; // VL_SearchedPos 의 이전 값
|
||||
@ -179,7 +179,7 @@ namespace ZNsMain
|
||||
|
||||
ARR_SaveOut.resize(VL_NeedSize);
|
||||
|
||||
TypePChar VPC_OutStart = ARR_SaveOut.data() ;
|
||||
TypePChar VPC_OutStart = const_cast<char*>(ARR_SaveOut.data()) ;
|
||||
TypePChar VPC_CopyStart = 0 ;
|
||||
TypePChar VPC_DestStart = 0 ;
|
||||
TypeLength VL_CopyStart = 0 ;
|
||||
|
@ -2671,15 +2671,15 @@ namespace ZNsMain
|
||||
|
||||
template< typename TType, typename TypeArg=const TType&
|
||||
>
|
||||
class ZtCExceptBase_T /*///////////////////////////////*/
|
||||
class ZtCExceptBase /*/////////////////////////////////*/
|
||||
{
|
||||
protected:
|
||||
TType mo_Type;
|
||||
public :
|
||||
|
||||
ZtCExceptBase_T(){}
|
||||
ZtCExceptBase(){}
|
||||
|
||||
ZtCExceptBase_T(TypeArg TypeArgObj):mo_Type(TypeArgObj){}
|
||||
ZtCExceptBase(TypeArg TypeArgObj):mo_Type(TypeArgObj){}
|
||||
|
||||
TType& operator()(){return mo_Type;}
|
||||
|
||||
@ -2687,7 +2687,7 @@ namespace ZNsMain
|
||||
};/*
|
||||
template< typename TType, typename TypeArg=const TType&
|
||||
>
|
||||
class ZtCExceptBase_T /////////////////////////////////*/
|
||||
class ZtCExceptBase ///////////////////////////////////*/
|
||||
|
||||
|
||||
/*/////////////////////////////////////////////////////////////////////////////////
|
||||
@ -2705,16 +2705,16 @@ namespace ZNsMain
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
class CNonCopyable
|
||||
class ZCNonCopyable
|
||||
{
|
||||
private:
|
||||
CNonCopyable(const CNonCopyable& rhs){}
|
||||
CNonCopyable& operator=(const CNonCopyable& rhs){return *this;}
|
||||
ZCNonCopyable(const ZCNonCopyable& rhs){}
|
||||
ZCNonCopyable& operator=(const ZCNonCopyable& rhs){return *this;}
|
||||
public :
|
||||
CNonCopyable(){}
|
||||
ZCNonCopyable(){}
|
||||
public :
|
||||
};/*
|
||||
class CNonCopyable*/
|
||||
class ZCNonCopyable*/
|
||||
|
||||
|
||||
/*///////////////////////////////////////////////////////////////////////////
|
||||
|
@ -1713,7 +1713,10 @@ namespace ZNsMain
|
||||
|
||||
ZCStdTime(const ZCStdTime& rhs)
|
||||
{
|
||||
if(this==&rhs) return;
|
||||
if(this==&rhs)
|
||||
{
|
||||
mb_IsLocal = true; return;
|
||||
}
|
||||
|
||||
mb_IsLocal =rhs.mb_IsLocal ;
|
||||
mo_FILETIME =rhs.mo_FILETIME ;
|
||||
|
@ -234,7 +234,7 @@ namespace ZNsMain
|
||||
public:
|
||||
|
||||
#ifdef _REENTRANT_MUTEX
|
||||
ZNsMain::CMutexSmallInit mo_Mutex ;
|
||||
ZNsMain::ZCMutexSmallInit mo_Mutex ;
|
||||
#endif //_REENTRANT_MUTEX
|
||||
|
||||
private:
|
||||
@ -253,7 +253,7 @@ namespace ZNsMain
|
||||
ZCLink* GetOneLink()
|
||||
{
|
||||
#ifdef _REENTRANT_MUTEX
|
||||
ZNsMain::CMutexSmallLock VO_CMutexSmallLock(mo_Mutex);
|
||||
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
||||
#endif //_REENTRANT_MUTEX
|
||||
|
||||
#ifdef _DEBUG
|
||||
@ -288,7 +288,7 @@ namespace ZNsMain
|
||||
/*************/ )
|
||||
{
|
||||
#ifdef _REENTRANT_MUTEX
|
||||
ZNsMain::CMutexSmallLock VO_CMutexSmallLock(mo_Mutex);
|
||||
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
||||
#endif //_REENTRANT_MUTEX
|
||||
|
||||
#ifdef _DEBUG
|
||||
@ -397,7 +397,7 @@ namespace ZNsMain
|
||||
// 기존에 있는 ml_UseSize 개의 링크를 먼저 사용한다.
|
||||
|
||||
#ifdef _REENTRANT_MUTEX
|
||||
ZNsMain::CMutexSmallLock VO_CMutexSmallLock(mo_Mutex);
|
||||
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
||||
#endif //_REENTRANT_MUTEX
|
||||
|
||||
#ifdef _DEBUG
|
||||
@ -479,7 +479,7 @@ namespace ZNsMain
|
||||
/**********/ )
|
||||
{
|
||||
#ifdef _REENTRANT_MUTEX
|
||||
ZNsMain::CMutexSmallLock VO_CMutexSmallLock(mo_Mutex);
|
||||
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
||||
#endif //_REENTRANT_MUTEX
|
||||
|
||||
#ifdef _DEBUG
|
||||
@ -577,7 +577,7 @@ namespace ZNsMain
|
||||
|
||||
|
||||
#ifdef _REENTRANT_MUTEX
|
||||
ZNsMain::CMutexSmallLock VO_CMutexSmallLock(mo_Mutex);
|
||||
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
||||
#endif //_REENTRANT_MUTEX
|
||||
|
||||
#ifdef _DEBUG
|
||||
@ -658,7 +658,7 @@ namespace ZNsMain
|
||||
void ReceiveLink(ZCLink* AP_Link)
|
||||
{
|
||||
#ifdef _REENTRANT_MUTEX
|
||||
ZNsMain::CMutexSmallLock VO_CMutexSmallLock(mo_Mutex);
|
||||
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
||||
#endif //_REENTRANT_MUTEX
|
||||
|
||||
AP_Link->mp_NextLink=0;
|
||||
@ -682,7 +682,7 @@ namespace ZNsMain
|
||||
void ReceiveLink(ZCLink* AP_HeadLink,ZCLink* AP_TailLink,TTypSize AL_Count)
|
||||
{
|
||||
#ifdef _REENTRANT_MUTEX
|
||||
ZNsMain::CMutexSmallLock VO_CMutexSmallLock(mo_Mutex);
|
||||
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
||||
#endif //_REENTRANT_MUTEX
|
||||
|
||||
if(ml_UseSize==0)
|
||||
@ -771,7 +771,7 @@ namespace ZNsMain
|
||||
void DeleteAllInHeap()
|
||||
{
|
||||
#ifdef _REENTRANT_MUTEX
|
||||
ZNsMain::CMutexSmallLock VO_CMutexSmallLock(mo_Mutex);
|
||||
ZNsMain::ZCMutexSmallLock VO_ZCMutexSmallLock(mo_Mutex);
|
||||
#endif //_REENTRANT_MUTEX
|
||||
|
||||
if(ml_UseSize==0)
|
||||
|
Reference in New Issue
Block a user