| 124 | }; |
| 125 | |
| 126 | static inline bool WaitForOne(TWaitHandle& wh, const TInstant& deadLine) { |
| 127 | TSignalled func; |
| 128 | auto hndl = MakeIntrusive<TWaitQueue>(); |
| 129 | wh.Register(hndl); |
| 130 | |
| 131 | WaitForMultipleObj(*hndl, deadLine, func); |
| 132 | |
| 133 | return func.Signalled; |
| 134 | } |
| 135 | } |
no test coverage detected