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

Method check

src/linux/routing/link/link.cpp:178–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177private:
178 void check()
179 {
180 Try<bool> exists = link::exists(link);
181 if (exists.isError()) {
182 promise.fail(exists.error());
183 terminate(self());
184 return;
185 } else if (!exists.get()) {
186 promise.set(Nothing());
187 terminate(self());
188 return;
189 }
190
191 // Perform the check again.
192 delay(Milliseconds(100), self(), &Self::check);
193 }
194
195 const string link;
196 Promise<Nothing> promise;

Callers

nothing calls this directly

Calls 10

NothingClass · 0.85
MillisecondsClass · 0.85
existsFunction · 0.70
errorMethod · 0.65
terminateFunction · 0.50
delayFunction · 0.50
isErrorMethod · 0.45
failMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected