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

Method handler

3rdparty/libprocess/src/tests/benchmarks.cpp:540–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538
539 template <typename T>
540 Future<Nothing> handler(const T& data)
541 {
542 count++;
543 if (count >= repeat) {
544 promise->set(Nothing());
545 return Nothing();
546 }
547
548 // NOTE: The prefix `this->` is required here, otherwise it will
549 // not compile when permissiveness is disabled (e.g. with MSVC on
550 // Windows).
551 dispatch(this->self(), &Self::_handler).then(
552 defer(this->self(), &Self::handler<T>, data));
553
554 return Nothing();
555 }
556
557 template <typename T>
558 static void run(const string& name, long repeats)

Callers

nothing calls this directly

Calls 6

NothingClass · 0.85
deferFunction · 0.85
dispatchFunction · 0.50
setMethod · 0.45
thenMethod · 0.45
selfMethod · 0.45

Tested by

no test coverage detected