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

Method Add

Source/Engine/Platform/iOS/iOSPlatform.cpp:86–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 Array<Function<void()>> List;
85
86 void Add(const Function<void()>& func, bool wait)
87 {
88 Locker.Lock();
89 List.Add(func);
90 Locker.Unlock();
91
92 // TODO: use atomic counters for more optimized waiting
93 while (wait)
94 {
95 Platform::Sleep(1);
96 Locker.Lock();
97 wait = List.HasItems();
98 Locker.Unlock();
99 }
100 }
101
102 void Run()
103 {

Callers 15

SetupMethod · 0.45
UpdateStateMethod · 0.45
GetAsFilesMethod · 0.45
DoDragDropMethod · 0.45
CreateProcessMethod · 0.45
ShowOpenFileDialogMethod · 0.45
GetChildDirectoriesMethod · 0.45
InitMethod · 0.45
GetChildDirectoriesMethod · 0.45

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
HasItemsMethod · 0.45

Tested by

no test coverage detected