From 707711607d34e4dc63c54d41ef169027525ba15f Mon Sep 17 00:00:00 2001 From: sauron Date: Tue, 9 Sep 2025 23:33:02 +0900 Subject: [PATCH] commit 2025-09-09 23:32 edit a bit ZCppMain/ZCProcess_Linux.H --- ZCppMain/ZCProcess_Linux.H | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/ZCppMain/ZCProcess_Linux.H b/ZCppMain/ZCProcess_Linux.H index dc403fe..d232dcf 100644 --- a/ZCppMain/ZCProcess_Linux.H +++ b/ZCppMain/ZCProcess_Linux.H @@ -3464,22 +3464,32 @@ namespace ZNsMain { _DEBUG_REENTRANT_CHECK_ - mh_ThreadID =rhs.mh_ThreadID ; - (TTypeBase&)(*this)=static_cast(rhs); - } + mh_ThreadID = 0 ; + }/* + ZtCThread(const ZtCThread& rhs):TTypeBase(rhs)*/ + template - ZtCThread(const TTypeArg& AR_TTypeArg):TTypeBase(AR_TTypeArg) + ZtCThread(const TTypeArg& AR_TTypeArg) : TTypeBase(AR_TTypeArg) { _DEBUG_REENTRANT_CHECK_ mh_ThreadID = 0 ; - } + }/* + template + ZtCThread(const TTypeArg& AR_TTypeArg) : TTypeBase(AR_TTypeArg) + */ ZtCThread& operator=(const ZtCThread& rhs) { - return *this; + *(TTypeBase*)(this) = rhs; return *this; }/* ZtCThread& operator=(const ZtCThread& rhs)*/ + ZtCThread& operator=(const TTypeBase& AR_CBaseType) + { + *(TTypeBase*)(this) = AR_CBaseType; return *this; + }/* + ZtCThread& operator=(const TTypeBase& AR_CBaseType)*/ + operator ThreadID () const {