| 37 | } |
| 38 | |
| 39 | bool Event::Init() { |
| 40 | auto status = stream_exec_->AllocateEvent(this); |
| 41 | if (!status.ok()) { |
| 42 | LOG(ERROR) << status.error_message(); |
| 43 | return false; |
| 44 | } |
| 45 | |
| 46 | return true; |
| 47 | } |
| 48 | |
| 49 | Event::Status Event::PollForStatus() { |
| 50 | return stream_exec_->PollForEventStatus(this); |