Home
last modified time | relevance | path

Searched refs:Semaphore (Results 1 – 25 of 77) sorted by relevance

1234

/external/v8/src/base/platform/
Dsemaphore.cc23 Semaphore::Semaphore(int count) { in Semaphore() function in v8::base::Semaphore
31 Semaphore::~Semaphore() { in ~Semaphore()
37 void Semaphore::Signal() { in Signal()
44 void Semaphore::Wait() { in Wait()
53 bool Semaphore::WaitFor(const TimeDelta& rel_time) { in WaitFor()
75 Semaphore::Semaphore(int count) {
83 Semaphore::~Semaphore() {
89 void Semaphore::Signal() {
98 void Semaphore::Wait() {
109 bool Semaphore::WaitFor(const TimeDelta& rel_time) {
[all …]
Dsemaphore.h35 class V8_BASE_EXPORT Semaphore final {
37 explicit Semaphore(int count);
38 ~Semaphore();
70 DISALLOW_COPY_AND_ASSIGN(Semaphore);
86 static Semaphore* Create() { in Create()
87 return new Semaphore(N); in Create()
93 typedef typename LazyDynamicInstance<Semaphore, CreateSemaphoreTrait<N>,
/external/deqp/framework/delibs/decpp/
DdeSemaphore.hpp42 class Semaphore class
45 Semaphore (int initialValue, deUint32 flags = 0);
46 ~Semaphore (void);
53 Semaphore (const Semaphore& other); // Not allowed!
54 Semaphore& operator= (const Semaphore& other); // Not allowed!
70 inline void Semaphore::increment (void) throw() in increment()
85 inline void Semaphore::decrement (void) throw() in decrement()
99 inline bool Semaphore::tryDecrement (void) throw() in tryDecrement()
DdeSemaphore.cpp37 Semaphore::Semaphore (int initialValue, deUint32 flags) in Semaphore() function in de::Semaphore
48 Semaphore::~Semaphore (void) in ~Semaphore()
DdeThreadSafeRingBuffer.hpp63 Semaphore m_fill;
64 Semaphore m_empty;
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DStripedTest.java37 import java.util.concurrent.Semaphore;
72 private static final Supplier<Semaphore> SEMAPHORE_SUPPLER = new Supplier<Semaphore>() {
73 @Override public Semaphore get() {
74 return new Semaphore(1, false);
88 .add(new Striped.SmallLazyStriped<Semaphore>(50, SEMAPHORE_SUPPLER)) in weakImplementations()
89 .add(new Striped.SmallLazyStriped<Semaphore>(64, SEMAPHORE_SUPPLER)) in weakImplementations()
90 .add(new Striped.LargeLazyStriped<Semaphore>(50, SEMAPHORE_SUPPLER)) in weakImplementations()
91 .add(new Striped.LargeLazyStriped<Semaphore>(64, SEMAPHORE_SUPPLER)) in weakImplementations()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DPromptHelper.java20 import java.util.concurrent.Semaphore;
35 private Semaphore promptToken;
36 private Semaphore promptResponse;
48 promptToken = new Semaphore(1); in PromptHelper()
51 promptResponse = new Semaphore(0); in PromptHelper()
/external/guava/guava/src/com/google/common/util/concurrent/
DStriped.java38 import java.util.concurrent.Semaphore;
235 public static Striped<Semaphore> semaphore(int stripes, final int permits) {
236 return new CompactStriped<Semaphore>(stripes, new Supplier<Semaphore>() {
237 @Override public Semaphore get() {
251 public static Striped<Semaphore> lazyWeakSemaphore(int stripes, final int permits) {
252 return lazy(stripes, new Supplier<Semaphore>() {
253 @Override public Semaphore get() {
254 return new Semaphore(permits, false);
477 private static class PaddedSemaphore extends Semaphore {
DUninterruptibles.java29 import java.util.concurrent.Semaphore;
296 Semaphore semaphore, long timeout, TimeUnit unit) { in tryAcquireUninterruptibly()
307 Semaphore semaphore, int permits, long timeout, TimeUnit unit) { in tryAcquireUninterruptibly()
/external/jmdns/src/javax/jmdns/impl/
DDNSStatefulObject.java7 import java.util.concurrent.Semaphore;
37 private final ConcurrentMap<Thread, Semaphore> _semaphores;
46 _semaphores = new ConcurrentHashMap<Thread, Semaphore>(50); in DNSStatefulObjectSemaphore()
57 Semaphore semaphore = _semaphores.get(thread); in waitForEvent()
59 semaphore = new Semaphore(1, true); in waitForEvent()
75 Collection<Semaphore> semaphores = _semaphores.values(); in signalEvent()
76 for (Semaphore semaphore : semaphores) { in signalEvent()
/external/replicaisland/src/com/replica/replicaisland/
DRenderingWatchDog.java18 import java.util.concurrent.Semaphore;
34 private Semaphore mSemaphore;
50 mSemaphore = new Semaphore(0); in start()
/external/volley/src/test/java/com/android/volley/mock/
DWaitableQueue.java24 import java.util.concurrent.Semaphore;
32 private final Semaphore mStopEvent = new Semaphore(0);
/external/deqp/external/vulkancts/modules/vulkan/
DvktBuildPrograms.cpp136 SyncTask (de::Semaphore* enterBarrier, de::Semaphore* inBarrier, de::Semaphore* leaveBarrier) in SyncTask()
156 de::Semaphore* m_enterBarrier;
157 de::Semaphore* m_inBarrier;
158 de::Semaphore* m_leaveBarrier;
163 de::Semaphore enterBarrier (0); in waitForComplete()
164 de::Semaphore inBarrier (0); in waitForComplete()
165 de::Semaphore leaveBarrier (0); in waitForComplete()
/external/guava/guava-tests/test/com/google/common/base/
DFinalizableReferenceQueueClassLoaderUnloadingTest.java33 import java.util.concurrent.Semaphore;
165 public static final Semaphore finalized = new Semaphore(0);
230 Semaphore finalizeCount = (Semaphore) sepFrqUserFinalizedF.get(null); in doTestUnloadableInStaticFieldIfClosed()
/external/python/cpython2/Lib/multiprocessing/
Dsynchronize.py108 class Semaphore(SemLock): class
127 class BoundedSemaphore(Semaphore):
199 self._sleeping_count = Semaphore(0)
200 self._woken_count = Semaphore(0)
201 self._wait_semaphore = Semaphore(0)
303 self._flag = Semaphore(0)
D__init__.py192 def Semaphore(value=1): function
196 from multiprocessing.synchronize import Semaphore
197 return Semaphore(value)
/external/v8/src/heap/
Dpage-parallel-job.h43 base::Semaphore* semaphore) in PageParallelJob()
139 base::Semaphore* on_finish, typename JobTraits::PerTaskData data) in Task()
178 base::Semaphore* on_finish_;
188 base::Semaphore* pending_tasks_;
/external/deqp/framework/platform/android/
DtcuAndroidRenderActivity.hpp64 de::Semaphore* semaphore;
99 Message (MessageType type_, de::Semaphore* semaphore) in Message()
/external/nist-sip/java/gov/nist/javax/sip/stack/
DIOHandler.java38 import java.util.concurrent.Semaphore;
62 private Semaphore ioSemaphore = new Semaphore(1);
/external/ltp/testcases/open_posix_testsuite/stress/semaphores/
Dcoverage.txt1 This file defines the coverage for Semaphore stress tests.
/external/ltp/testcases/open_posix_testsuite/functional/semaphores/
Dcoverage.txt1 This file defines the coverage for Semaphore functional tests.
/external/valgrind/drd/tests/
Dtc18_semabuse.stderr.exp-solaris2 Semaphore reinitialization: semaphore 0x........
Dtc18_semabuse.stderr.exp2 Semaphore reinitialization: semaphore 0x........
/external/v8/src/libplatform/
Dtask-queue.h42 base::Semaphore process_queue_semaphore_;
/external/v8/src/
Dd8.h137 base::Semaphore next_semaphore_;
138 base::Semaphore done_semaphore_;
274 base::Semaphore in_semaphore_;
275 base::Semaphore out_semaphore_;

1234