MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / SetThreadState

Method SetThreadState

Code/CryEngine/CrySystem/System.cpp:1162–1177  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1160
1161//////////////////////////////////////////////////////////////////////////
1162int CSystem::SetThreadState(ESubsystem subsys, bool bActive)
1163{
1164 switch (subsys)
1165 {
1166 case ESubsys_Physics:
1167 {
1168 if (m_PhysThread)
1169 {
1170 return bActive ? ((CPhysicsThreadTask*)m_PhysThread)->Resume() : ((CPhysicsThreadTask*)m_PhysThread)->Pause();
1171 }
1172
1173 }
1174 break;
1175 }
1176 return 0;
1177}
1178
1179//////////////////////////////////////////////////////////////////////////
1180void CSystem::SleepIfInactive()

Callers 12

LoadLevelMethod · 0.80
~CActionGameMethod · 0.80
ResetEngineMethod · 0.80
LoadEntitiesMethod · 0.80
SSaveGameAutoCleanupMethod · 0.80
~SSaveGameAutoCleanupMethod · 0.80
SLoadGameAutoCleanupMethod · 0.80
~SLoadGameAutoCleanupMethod · 0.80
ExportMethod · 0.80
OnSystemEventMethod · 0.80
EnableMethod · 0.80
UnloadPhysicsDataMethod · 0.80

Calls 2

ResumeMethod · 0.45
PauseMethod · 0.45

Tested by

no test coverage detected