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

Class fat_executor

test/execution/any_executor.cpp:40–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40struct fat_executor
41{
42 fat_executor(int id)
43 : id_(id)
44 {
45 std::memset(data_, 0, sizeof(data_));
46 }
47
48 template <typename F>
49 void execute(const F&) const
50 {
51 }
52
53 std::size_t query(execution::occupancy_t) const
54 {
55 return 1;
56 }
57
58 friend bool operator==(const fat_executor& a,
59 const fat_executor& b) noexcept
60 {
61 return a.id_ == b.id_;
62 }
63
64 friend bool operator!=(const fat_executor& a,
65 const fat_executor& b) noexcept
66 {
67 return a.id_ != b.id_;
68 }
69
70 int id_;
71 unsigned char data_[1024];
72};
73
74namespace boost {
75namespace asio {

Calls

no outgoing calls

Tested by

no test coverage detected