The default implementation just calls the other HostCallback method. It should make all existing code that uses a void() callback still work.
| 21 | // The default implementation just calls the other HostCallback method. |
| 22 | // It should make all existing code that uses a void() callback still work. |
| 23 | bool StreamExecutorInterface::HostCallback(Stream* stream, |
| 24 | std::function<void()> callback) { |
| 25 | return HostCallback( |
| 26 | stream, std::function<port::Status()>([callback]() -> port::Status { |
| 27 | callback(); |
| 28 | return port::Status::OK(); |
| 29 | })); |
| 30 | } |
| 31 | |
| 32 | } // namespace internal |
| 33 | } // namespace stream_executor |
nothing calls this directly
no test coverage detected