| 73 | } |
| 74 | |
| 75 | int WaitD(TCont* current, TInstant deadline) { |
| 76 | TWaiter waiter(current); |
| 77 | |
| 78 | Waiters_.PushBack(&waiter); |
| 79 | |
| 80 | return waiter.WaitD(deadline); |
| 81 | } |
| 82 | |
| 83 | int WaitT(TCont* current, TDuration timeout) { |
| 84 | return WaitD(current, timeout.ToDeadLine()); |