MCPcopy Create free account
hub / github.com/crazytuzi/UnrealCSharp / Run

Method Run

Source/Compiler/Private/FCSharpCompilerRunnable.cpp:49–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49uint32 FCSharpCompilerRunnable::Run()
50{
51 while (true)
52 {
53 if (bIsStopped)
54 {
55 return 0;
56 }
57
58 if (!bIsGenerating)
59 {
60 if (!Tasks.IsEmpty())
61 {
62 bool Task = false;
63
64 {
65 FScopeLock ScopeLock(&CriticalSection);
66
67 if (!Tasks.IsEmpty())
68 {
69 Tasks.Dequeue(Task);
70 }
71 }
72
73 if (Task == true)
74 {
75 DoWork();
76 }
77 }
78 else
79 {
80 if (Event != nullptr)
81 {
82 Event->Wait();
83 }
84 }
85 }
86 }
87}
88
89void FCSharpCompilerRunnable::Stop()
90{

Callers

nothing calls this directly

Calls 1

IsEmptyMethod · 0.45

Tested by

no test coverage detected