MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ThreadFunction

Method ThreadFunction

Source/Editor/Cooker/GameCooker.cpp:793–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

791}
792
793int32 GameCookerImpl::ThreadFunction()
794{
795 IsThreadRunning = true;
796
797 CriticalSection mutex;
798 while (Platform::AtomicRead(&CancelThreadFlag) == 0)
799 {
800 if (IsRunning)
801 {
802 Build();
803 }
804
805 ThreadCond.Wait(mutex);
806 }
807
808 IsThreadRunning = false;
809 return 0;
810}
811
812bool GameCookerService::Init()
813{

Callers

nothing calls this directly

Calls 3

BuildFunction · 0.85
AtomicReadFunction · 0.50
WaitMethod · 0.45

Tested by

no test coverage detected