MCPcopy Create free account
hub / github.com/KTStephano/StratusGFX / CheckForCompletion

Method CheckForCompletion

Source/Engine/StratusTaskSystem.h:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 virtual bool CheckForCompletion() const override {
28 for (const auto& as : group) {
29 if (!as.Completed()) {
30 return false;
31 }
32 }
33
34 std::function<void(const std::vector<Async<E>>&)> c = callback;
35 std::vector<Async<E>> g = group;
36 thread->Queue([c, g]() {
37 c(g);
38 });
39 return true;
40 }
41
42 Thread* thread;
43 std::function<void(const std::vector<Async<E>>&)> callback;

Callers 1

UpdateMethod · 0.80

Calls 2

CompletedMethod · 0.45
QueueMethod · 0.45

Tested by

no test coverage detected