| 5 | namespace { |
| 6 | template <class T> |
| 7 | int DoExecuteEvent(T* event) noexcept { |
| 8 | auto* cont = event->Cont(); |
| 9 | |
| 10 | if (cont->Cancelled()) { |
| 11 | return ECANCELED; |
| 12 | } |
| 13 | |
| 14 | cont->Executor()->ScheduleIoWait(event); |
| 15 | cont->Switch(); |
| 16 | |
| 17 | if (cont->Cancelled()) { |
| 18 | return ECANCELED; |
| 19 | } |
| 20 | |
| 21 | return event->Status(); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | void TContPollEvent::Wake() noexcept { |
no test coverage detected