connection between 2 systems and bug fixes (#14)

This commit is contained in:
tompzf
2026-07-03 14:53:48 +02:00
committed by GitHub
parent 0fb5660d27
commit 46842200f1
284 changed files with 35200 additions and 8265 deletions

View File

@@ -59,7 +59,7 @@ CProcessControl::~CProcessControl()
bool CProcessControl::OnInitialize()
{
// Without monitor no trigger...
m_threadMonitor = std::thread(&CProcessControl::MonitorThread, this);
m_threadMonitor = sdv::core::secure_thread(&CProcessControl::MonitorThread, this);
return true;
}
@@ -76,6 +76,7 @@ void CProcessControl::OnShutdown()
bool CProcessControl::AllowProcessControl() const
{
if (m_bEnableBypass) return true;
const sdv::app::IAppContext* pAppContext = sdv::core::GetCore<sdv::app::IAppContext>();
return pAppContext && (pAppContext->GetContextType() == sdv::app::EAppContext::main ||
pAppContext->GetContextType() == sdv::app::EAppContext::maintenance ||
@@ -574,3 +575,7 @@ void CProcessControl::MonitorThread()
}
}
void CProcessControl::EnableProcessControlAccessBypass()
{
m_bEnableBypass = true;
}