| 38 | } |
| 39 | |
| 40 | struct 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 | |
| 74 | namespace boost { |
| 75 | namespace asio { |
no outgoing calls
no test coverage detected