| 541 | |
| 542 | template <class SequenceKey, class Hash, class KeyEqual, class Allocator> |
| 543 | bool |
| 544 | Sequencer<SequenceKey, Hash, KeyEqual, Allocator>::isPendingContext(const ICoroContextBasePtr& ctx, |
| 545 | const ICoroContextBasePtr& ctxToValidate) |
| 546 | { |
| 547 | return ctxToValidate && ctxToValidate->valid() && |
| 548 | ctxToValidate->waitFor(ctx, std::chrono::milliseconds::zero()) == std::future_status::timeout; |
| 549 | } |
| 550 | |
| 551 | template <class SequenceKey, class Hash, class KeyEqual, class Allocator> |
| 552 | bool |