Home
last modified time | relevance | path

Searched refs:waiters (Results 1 – 23 of 23) sorted by relevance

/external/chromium_org/net/socket/
Dwebsocket_endpoint_lock_manager_unittest.cc129 FakeWaiter waiters[2]; in TEST_F() local
130 EXPECT_EQ(OK, instance()->LockEndpoint(DummyEndpoint(), &waiters[0])); in TEST_F()
132 instance()->LockEndpoint(DummyEndpoint(), &waiters[1])); in TEST_F()
146 FakeWaiter waiters[2]; in TEST_F() local
147 EXPECT_EQ(OK, instance()->LockEndpoint(DummyEndpoint(), &waiters[0])); in TEST_F()
149 instance()->LockEndpoint(DummyEndpoint(), &waiters[1])); in TEST_F()
150 EXPECT_FALSE(waiters[1].called()); in TEST_F()
156 FakeWaiter waiters[2]; in TEST_F() local
157 EXPECT_EQ(OK, instance()->LockEndpoint(DummyEndpoint(), &waiters[0])); in TEST_F()
159 instance()->LockEndpoint(DummyEndpoint(), &waiters[1])); in TEST_F()
[all …]
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
Dsem_post_multiple.c80 long waiters; in sem_post_multiple() local
100 waiters = -s->value; in sem_post_multiple()
102 if (waiters > 0) in sem_post_multiple()
107 waiters--; in sem_post_multiple()
109 if (s->leftToUnblock > waiters) in sem_post_multiple()
111 s->leftToUnblock = waiters; in sem_post_multiple()
115 if (ReleaseSemaphore (s->sem, (waiters<=count)?waiters:count, 0)) in sem_post_multiple()
/external/libvpx/libvpx/vpx_ports/
Dvpx_once.h22 static LONG waiters; in once() local
33 InterlockedIncrement(&waiters); in once()
67 if(!InterlockedDecrement(&waiters)) in once()
/external/chromium_org/third_party/libusb/src/libusb/os/
Dthreads_windows.c88 list_init(&cond->waiters ); in usbi_cond_init()
96 if(!list_empty(&cond->waiters)) return ((errno=EBUSY )); // (!see above!) in usbi_cond_destroy()
113 list_for_each_entry(pos, &cond->waiters, list, struct usbi_cond_perthread) { in usbi_cond_broadcast()
126 if(list_empty(&cond->waiters)) return 0; // no one to wakeup. in usbi_cond_signal()
127 pos = list_entry(&cond->waiters.next, struct usbi_cond_perthread, list); in usbi_cond_signal()
157 list_add(&pos->list, &cond->waiters); in usbi_cond_intwait()
Dthreads_windows.h38 struct list_head waiters; member
/external/chromium_org/third_party/libvpx/source/libvpx/vpx_ports/
Dvpx_once.h22 static LONG waiters; in once() local
33 InterlockedIncrement(&waiters); in once()
67 if(!InterlockedDecrement(&waiters)) in once()
/external/fio/
Dmutex.c110 mutex->waiters++; in fio_mutex_down_timeout()
120 mutex->waiters--; in fio_mutex_down_timeout()
154 mutex->waiters++; in fio_mutex_down()
156 mutex->waiters--; in fio_mutex_down()
169 if (!mutex->value && mutex->waiters) in fio_mutex_up()
Dmutex.h13 int waiters; member
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/os/
Dos_thread.h342 unsigned waiters; member
351 barrier->waiters = 0; in pipe_barrier_init()
359 assert(barrier->waiters == 0); in pipe_barrier_destroy()
368 assert(barrier->waiters < barrier->count); in pipe_barrier_wait()
369 barrier->waiters++; in pipe_barrier_wait()
371 if (barrier->waiters < barrier->count) { in pipe_barrier_wait()
378 barrier->waiters = 0; in pipe_barrier_wait()
/external/mesa3d/src/gallium/auxiliary/os/
Dos_thread.h342 unsigned waiters; member
351 barrier->waiters = 0; in pipe_barrier_init()
359 assert(barrier->waiters == 0); in pipe_barrier_destroy()
368 assert(barrier->waiters < barrier->count); in pipe_barrier_wait()
369 barrier->waiters++; in pipe_barrier_wait()
371 if (barrier->waiters < barrier->count) { in pipe_barrier_wait()
378 barrier->waiters = 0; in pipe_barrier_wait()
/external/qemu/util/
Dqemu-thread-win32.c113 if (cond->waiters == 0) { in qemu_cond_signal()
123 cond->target = cond->waiters - 1; in qemu_cond_signal()
138 if (cond->waiters == 0) { in qemu_cond_broadcast()
143 result = ReleaseSemaphore(cond->sema, cond->waiters, NULL); in qemu_cond_broadcast()
164 cond->waiters++; in qemu_cond_wait()
188 if (InterlockedDecrement(&cond->waiters) == cond->target) { in qemu_cond_wait()
/external/valgrind/main/drd/
Ddrd_semaphore.c107 p->waiters = 0; in drd_semaphore_initialize()
121 if (p->waiters > 0) in semaphore_cleanup()
327 p->waiters++; in DRD_()
329 if ((Word)(p->waiters) <= 0) in DRD_()
359 p->waiters--; in DRD_()
370 if (p == NULL || (Int)(p->value) < 0 || (Word)(p->waiters) < 0) in DRD_()
Ddrd_pthread_intercepts.c141 int waiters; member
187 sema->waiters = 0; in DRD_()
201 sema->waiters++; in DRD_()
221 sema->waiters--; in DRD_()
232 if (sema->waiters > 0) in DRD_()
Ddrd_clientobj.h109 UWord waiters; // Number of threads inside sem_wait(). member
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/
DCurrentContendedMonitorTest.java109 int waiters = replyObj.getNextValueAsInt(); in testCurrentContendedMonitor001() local
112 for (int i = 0; i < waiters; i++) { in testCurrentContendedMonitor001()
/external/guava/guava/src/com/google/common/util/concurrent/
DMonitor.java805 int waiters = guard.waiterCount++; in incrementWaiters() local
806 if (waiters == 0) { in incrementWaiters()
813 int waiters = --guard.waiterCount; in decrementWaiters() local
814 if (waiters == 0) { in decrementWaiters()
/external/chromium_org/third_party/libxml/src/
Dthreads.c124 unsigned int waiters; member
307 tok->waiters = 0; in xmlNewRMutex()
370 tok->waiters++; in xmlRMutexLock()
373 tok->waiters--; in xmlRMutexLock()
411 if (tok->waiters) in xmlRMutexUnlock()
/external/qemu/include/qemu/
Dthread-win32.h11 LONG waiters, target; member
/external/libxml2/
Dthreads.c124 unsigned int waiters; member
307 tok->waiters = 0; in xmlNewRMutex()
370 tok->waiters++; in xmlRMutexLock()
373 tok->waiters--; in xmlRMutexLock()
411 if (tok->waiters) in xmlRMutexUnlock()
/external/deqp/modules/egl/
DteglMultiThreadTests.cpp265 const deInt32 waiters = deAtomicIncrement32(&m_barrierWaiters); in barrier() local
267 if (waiters == m_threadCount) in barrier()
280 const deInt32 waiters = deAtomicDecrement32(&m_barrierWaiters); in barrier() local
282 if (waiters == 0) in barrier()
/external/libusb/
DChangeLog890 when a thread gets terminated with a signal, meaning that event waiters
928 Take lock before raising event waiters condition
/external/valgrind/main/
DNEWS.old1983 - Fixed a bug causing an assertion failure of "waiters == 1"
/external/srec/config/en.us/dictionary/
Dlarge.ok31303 waiters wAdPz