|
@@ -44,12 +44,14 @@ CScriptExecutor::CScriptExecutor(void)
|
|
|
m_dwThreadId = 0;
|
|
|
m_dwSubprocessId = 0;
|
|
|
m_bRuned = FALSE;
|
|
|
-
|
|
|
+ m_pCaseObj = NULL;
|
|
|
m_ulStartTickCount = 0;
|
|
|
}
|
|
|
|
|
|
CScriptExecutor::~CScriptExecutor(void)
|
|
|
{
|
|
|
+ EndWorkThread();
|
|
|
+ EndLogThread();
|
|
|
}
|
|
|
|
|
|
DWORD CScriptExecutor::_WorkerThread(LPVOID lpParam)
|
|
@@ -108,6 +110,9 @@ DWORD CScriptExecutor::_LogExportThread(LPVOID lpParam)
|
|
|
|
|
|
that->m_ulStartTickCount = GetTickCount64();
|
|
|
GLOBAL::WritePythonLog(that->m_szLogPath, chBuf);
|
|
|
+ // 更新日志时间;
|
|
|
+ if ( that->m_pCaseObj )
|
|
|
+ that->m_pCaseObj->_ulStartTickCount = GetTickCount64();
|
|
|
memset(chBuf, 0, BUFSIZE);
|
|
|
} while (!that->m_bStopLogExport);
|
|
|
}
|
|
@@ -125,6 +130,9 @@ DWORD CScriptExecutor::_LogExportThread(LPVOID lpParam)
|
|
|
|
|
|
that->m_ulStartTickCount = GetTickCount64();
|
|
|
GLOBAL::WritePythonLog(that->m_szLogPath, chBuf);
|
|
|
+ // 更新日志时间;
|
|
|
+ if ( that->m_pCaseObj )
|
|
|
+ that->m_pCaseObj->_ulStartTickCount = GetTickCount64();
|
|
|
memset(chBuf, 0, BUFSIZE);
|
|
|
} while (!that->m_bStopLogExport);
|
|
|
}
|