Searched refs:waitables (Results 1 – 4 of 4) sorted by relevance
/external/libchrome/base/synchronization/ |
D | waitable_event_posix.cc | 249 std::vector<std::pair<WaitableEvent*, size_t> > waitables; in WaitMany() local 250 waitables.reserve(count); in WaitMany() 252 waitables.push_back(std::make_pair(raw_waitables[i], i)); in WaitMany() 254 DCHECK_EQ(count, waitables.size()); in WaitMany() 256 sort(waitables.begin(), waitables.end(), cmp_fst_addr); in WaitMany() 261 for (size_t i = 0; i < waitables.size() - 1; ++i) { in WaitMany() 262 DCHECK(waitables[i].first != waitables[i+1].first); in WaitMany() 267 const size_t r = EnqueueMany(&waitables[0], count, &sw); in WaitMany() 271 return waitables[r].second; in WaitMany() 279 waitables[count - (1 + i)].first->kernel_->lock_.Release(); in WaitMany() [all …]
|
D | waitable_event.h | 128 static size_t WaitMany(WaitableEvent** waitables, size_t count); 269 static size_t EnqueueMany(WaiterAndIndex* waitables,
|
/external/angle/src/libANGLE/ |
D | WorkerThread_unittest.cpp | 37 std::array<std::shared_ptr<WaitableEvent>, 4> waitables = { in TEST() local 43 WaitableEvent::WaitMany(&waitables); in TEST()
|
D | WorkerThread.h | 49 static void WaitMany(std::array<std::shared_ptr<WaitableEvent>, Count> *waitables) in WaitMany() argument 54 (*waitables)[index]->wait(); in WaitMany()
|