Searched refs:waitables (Results 1 – 2 of 2) sorted by relevance
228 std::vector<std::pair<WaitableEvent*, size_t> > waitables; in WaitMany() local229 waitables.reserve(count); in WaitMany()231 waitables.push_back(std::make_pair(raw_waitables[i], i)); in WaitMany()233 DCHECK_EQ(count, waitables.size()); in WaitMany()235 sort(waitables.begin(), waitables.end(), cmp_fst_addr); in WaitMany()240 for (size_t i = 0; i < waitables.size() - 1; ++i) { in WaitMany()241 DCHECK(waitables[i].first != waitables[i+1].first); in WaitMany()246 const size_t r = EnqueueMany(&waitables[0], count, &sw); in WaitMany()252 return waitables[count - r].second; in WaitMany()260 waitables[count - (1 + i)].first->kernel_->lock_.Release(); in WaitMany()[all …]
97 static size_t WaitMany(WaitableEvent** waitables, size_t count);166 static size_t EnqueueMany(WaiterAndIndex* waitables,