proxygen
entangled_cancellation_factory Struct Reference

Public Member Functions

auto operator() ()
 

Detailed Description

Definition at line 179 of file PushmiBenchmarks.cpp.

Member Function Documentation

auto entangled_cancellation_factory::operator() ( )
inline

Definition at line 180 of file PushmiBenchmarks.cpp.

References folly::pushmi::entangle(), and stop().

180  {
181  // boolean cancellation
182  bool stop = false;
183  auto set_stop = [](auto& stop) {
184  if (!!stop) {
185  *stop = true;
186  }
187  };
188  return mi::entangle(stop, set_stop);
189  }
static void stop()
auto entangle(First f, Second s) -> entangled_pair< First, Second >
Definition: entangle.h:219

The documentation for this struct was generated from the following file: