proxygen
inline_executor Struct Reference

Public Types

using properties = mi::property_set< mi::is_sender<>, mi::is_fifo_sequence<>, mi::is_always_blocking<>, mi::is_single<>>
 

Public Member Functions

auto executor ()
 
template<class Out >
void submit (Out out)
 
template<class Function >
void execute (Function f) const noexcept
 
constexpr bool query (std::experimental::execution::oneway_t)
 
constexpr bool query (std::experimental::execution::twoway_t)
 
constexpr bool query (std::experimental::execution::single_t)
 

Friends

bool operator== (const inline_executor &, const inline_executor &) noexcept
 
bool operator!= (const inline_executor &, const inline_executor &) noexcept
 

Detailed Description

Definition at line 102 of file PushmiBenchmarks.cpp.

Member Typedef Documentation

Member Function Documentation

template<class Function >
void inline_executor::execute ( Function  f) const
inlinenoexcept

Definition at line 51 of file then_execute_2.cpp.

References f.

51  {
52  f();
53  }
auto f
auto inline_executor::executor ( )
inline

Definition at line 108 of file PushmiBenchmarks.cpp.

108  {
109  return inline_time_executor{};
110  }
constexpr bool inline_executor::query ( std::experimental::execution::oneway_t  )
inline

Definition at line 54 of file then_execute_2.cpp.

54  {
55  return true;
56  }
constexpr bool inline_executor::query ( std::experimental::execution::twoway_t  )
inline

Definition at line 57 of file then_execute_2.cpp.

57  {
58  return false;
59  }
constexpr bool inline_executor::query ( std::experimental::execution::single_t  )
inline

Definition at line 60 of file then_execute_2.cpp.

60  {
61  return true;
62  }
template<class Out >
void inline_executor::submit ( Out  out)
inline

Definition at line 112 of file PushmiBenchmarks.cpp.

References folly::pushmi::set_value.

112  {
113  ::mi::set_value(out, *this);
114  }
PUSHMI_INLINE_VAR constexpr __adl::set_value_fn set_value

Friends And Related Function Documentation

bool operator!= ( const inline_executor ,
const inline_executor  
)
friend

Definition at line 45 of file then_execute_2.cpp.

47  {
48  return false;
49  }
bool operator== ( const inline_executor ,
const inline_executor  
)
friend

Definition at line 40 of file then_execute_2.cpp.

42  {
43  return true;
44  }

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