MCPcopy Create free account
hub / github.com/apache/mesos / foreachpair

Function foreachpair

src/resource_provider/daemon.cpp:181–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180 foreachkey (const string& type, providers) {
181 foreachpair (const string& name,
182 const ProviderData& data,
183 providers[type]) {
184 if (data.removing.isSome()) {
185 continue;
186 }
187
188 auto error = [=](const string& message) {
189 LOG(ERROR) << "Failed to launch resource provider with type '" << type
190 << "' and name '" << name << "': " << message;
191 };
192
193 launch(type, name)
194 .onFailed(error)
195 .onDiscarded(std::bind(error, "future discarded"));
196 }
197 }
198}
199

Callers

nothing calls this directly

Calls 3

launchFunction · 0.50
bindFunction · 0.50
isSomeMethod · 0.45

Tested by

no test coverage detected