proxygen
FibYielder Struct Reference

Public Member Functions

template<class Yield >
void operator() (Yield &&yield) const
 

Detailed Description

Definition at line 203 of file BaseBenchmark.cpp.

Member Function Documentation

template<class Yield >
void FibYielder::operator() ( Yield &&  yield) const
inline

Definition at line 205 of file BaseBenchmark.cpp.

References a, b, and folly::fibers::yield().

205  {
206  int a = 0;
207  int b = 1;
208  for (;;) {
209  yield(a += b);
210  yield(b += a);
211  }
212  }
char b
char a

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