MCPcopy Create free account
hub / github.com/boostorg/asio / possibly_blocking_executor

Class possibly_blocking_executor

test/execution/prefer_only.cpp:29–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static int never_blocking_count = 0;
28
29struct possibly_blocking_executor
30{
31 template <typename F>
32 void execute(const F&) const
33 {
34 ++possibly_blocking_count;
35 }
36
37 friend bool operator==(const possibly_blocking_executor&,
38 const possibly_blocking_executor&) noexcept
39 {
40 return true;
41 }
42
43 friend bool operator!=(const possibly_blocking_executor&,
44 const possibly_blocking_executor&) noexcept
45 {
46 return false;
47 }
48};
49
50namespace boost {
51namespace asio {

Calls

no outgoing calls

Tested by

no test coverage detected