| 99 | |
| 100 | template <class TPtr> |
| 101 | inline bool TryDequeue(TPtr& p) noexcept { |
| 102 | if (L.Empty()) { |
| 103 | return false; |
| 104 | } |
| 105 | |
| 106 | p.Reset(L.PopFront()); |
| 107 | |
| 108 | return true; |
| 109 | } |
| 110 | |
| 111 | inline TContExecutor* Executor() const noexcept { |
| 112 | return Ev.Executor(); |