| 222 | } |
| 223 | |
| 224 | port::Status HostExecutor::RecordEvent(Stream *stream, Event *event) { |
| 225 | std::shared_ptr<absl::Notification> notification = |
| 226 | AsHostEvent(event)->notification(); |
| 227 | AsHostStream(stream)->EnqueueTask([notification]() { |
| 228 | CHECK(!notification->HasBeenNotified()); |
| 229 | notification->Notify(); |
| 230 | }); |
| 231 | return port::Status::OK(); |
| 232 | } |
| 233 | |
| 234 | port::Status HostExecutor::WaitForEvent(Stream *stream, Event *event) { |
| 235 | std::shared_ptr<absl::Notification> notification = |
nothing calls this directly
no test coverage detected