| 22 | namespace stream_executor { |
| 23 | |
| 24 | Event::Event(StreamExecutor* stream_exec) |
| 25 | : stream_exec_(stream_exec), |
| 26 | implementation_( |
| 27 | stream_exec_->implementation()->CreateEventImplementation()) {} |
| 28 | |
| 29 | Event::~Event() { |
| 30 | // Deal with nullptr implementation_, as this event may have been std::moved. |