Searched refs:semaphore (Results 1 - 25 of 80) sorted by relevance

1234

/external/kernel-headers/original/asm-arm/
H A Dsemaphore.h2 * linux/include/asm-arm/semaphore.h
15 struct semaphore { struct
28 struct semaphore name = __SEMAPHORE_INIT(name,count)
33 static inline void sema_init(struct semaphore *sem, int val)
40 static inline void init_MUTEX(struct semaphore *sem)
45 static inline void init_MUTEX_LOCKED(struct semaphore *sem)
58 extern void __down(struct semaphore * sem);
59 extern int __down_interruptible(struct semaphore * sem);
60 extern int __down_trylock(struct semaphore * sem);
61 extern void __up(struct semaphore * se
[all...]
/external/valgrind/main/drd/
H A Ddrd_semaphore.h41 struct semaphore_info* DRD_(semaphore_init)(const Addr semaphore,
44 void DRD_(semaphore_destroy)(const Addr semaphore);
45 struct semaphore_info* DRD_(semaphore_open)(const Addr semaphore,
48 void DRD_(semaphore_close)(const Addr semaphore);
49 void DRD_(semaphore_pre_wait)(const Addr semaphore);
50 void DRD_(semaphore_post_wait)(const DrdThreadId tid, const Addr semaphore,
52 void DRD_(semaphore_pre_post)(const DrdThreadId tid, const Addr semaphore);
53 void DRD_(semaphore_post_post)(const DrdThreadId tid, const Addr semaphore,
H A Ddrd_semaphore.c86 /** Enable or disable tracing of semaphore actions. */
94 * client semaphore at client addres 'semaphore'.
98 const Addr semaphore)
100 tl_assert(semaphore != 0);
101 tl_assert(p->a1 == semaphore);
128 "Destruction of semaphore that is being waited"
139 * client semaphore. Allocate a new structure if such a structure did not
144 drd_semaphore_get_or_allocate(const Addr semaphore) argument
148 tl_assert(offsetof(DrdClientobj, semaphore)
97 drd_semaphore_initialize(struct semaphore_info* const p, const Addr semaphore) argument
163 semaphore_get(const Addr semaphore) argument
170 semaphore_init(const Addr semaphore, const Word pshared, const UInt value) argument
219 semaphore_destroy(const Addr semaphore) argument
248 semaphore_open(const Addr semaphore, const Char* name, const Word oflag, const Word mode, const UInt value) argument
292 semaphore_close(const Addr semaphore) argument
321 semaphore_pre_wait(const Addr semaphore) argument
346 semaphore_post_wait(const DrdThreadId tid, const Addr semaphore, const Bool waited) argument
401 semaphore_pre_post(const DrdThreadId tid, const Addr semaphore) argument
424 semaphore_post_post(const DrdThreadId tid, const Addr semaphore, const Bool succeeded) argument
[all...]
/external/kernel-headers/original/asm-x86/
H A Dsemaphore_32.h14 * the original code and to make semaphore waits
21 * also implemented the `trylock' semaphore operation.
35 * /pub/linux/src/semaphore/semaphore-2.0.24.tar.gz.
44 struct semaphore { struct
59 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
63 static inline void sema_init (struct semaphore *sem, int val)
66 * *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val);
76 static inline void init_MUTEX (struct semaphore *sem)
81 static inline void init_MUTEX_LOCKED (struct semaphore *se
[all...]
/external/valgrind/main/none/tests/
H A Dsemlimit.c1 #include <semaphore.h>
/external/valgrind/main/drd/tests/
H A Dtc18_semabuse.stderr.exp2 Semaphore reinitialization: semaphore 0x........
5 semaphore 0x........ was first observed at:
9 Invalid semaphore: semaphore 0x........
12 semaphore 0x........ was first observed at:
H A Dlinuxthreads_det.c7 #include <semaphore.h>
H A Dsem_as_mutex.c1 /* Use a semaphore to implement mutual exclusion. */
7 #include <semaphore.h>
H A Dpth_detached_sem.c4 * in this test program the main thread uses a counting semaphore instead
12 #include <semaphore.h>
H A Dsem_open.c1 /* Use a semaphore to implement mutual exclusion. */
6 #include <semaphore.h>
66 fprintf(stderr, "Failed to create a semaphore with name %s\n",
/external/srec/portable/include/
H A Dptrd.h301 * Creates a thread semaphore.
303 * @param semaphore Handle to the created semaphore.
304 * @param initValue Initial semaphore value
305 * @param maxValue Maximum semaphore value
312 PtrdSemaphore **semaphore);
315 * Destroy a semaphore
317 * @param semaphore Handle to the semaphore to destroy
322 PORTABLE_API ESR_ReturnCode PtrdSemaphoreDestroy(PtrdSemaphore *semaphore);
[all...]
/external/jmdns/src/javax/jmdns/impl/
H A DDNSStatefulObject.java25 * This class define a semaphore. On this multiple threads can wait the arrival of one event. Thread wait for a maximum defined by the timeout.
57 Semaphore semaphore = _semaphores.get(thread);
58 if (semaphore == null) {
59 semaphore = new Semaphore(1, true);
60 semaphore.drainPermits();
61 _semaphores.putIfAbsent(thread, semaphore);
63 semaphore = _semaphores.get(thread);
65 semaphore.tryAcquire(timeout, TimeUnit.MILLISECONDS);
72 * Signals the semaphore when the event arrives.
76 for (Semaphore semaphore
[all...]
/external/v8/test/cctest/
H A Dtest-circular-queue.cc125 i::Semaphore* semaphore = i::OS::CreateSemaphore(0); local
133 ProducerThread producer1(&scq, kRecordsPerChunk, 1, semaphore);
134 ProducerThread producer2(&scq, kRecordsPerChunk, 10, semaphore);
135 ProducerThread producer3(&scq, kRecordsPerChunk, 20, semaphore);
139 semaphore->Wait();
151 semaphore->Wait();
163 semaphore->Wait();
175 delete semaphore;
H A Dtest-threads.cc146 i::Semaphore* semaphore)
149 semaphore_(semaphore) {
176 i::Semaphore* semaphore = i::OS::CreateSemaphore(0); local
180 new ThreadIdValidationThread(prev, &refs, i, semaphore);
187 semaphore->Wait();
143 ThreadIdValidationThread(i::Thread* thread_to_start, i::List<i::ThreadId>* refs, unsigned int thread_no, i::Semaphore* semaphore) argument
H A Dtest-thread-termination.cc33 v8::internal::Semaphore* semaphore = NULL; variable
37 semaphore->Signal();
167 semaphore->Wait();
180 semaphore = v8::internal::OS::CreateSemaphore(0);
195 delete semaphore;
196 semaphore = NULL;
234 semaphore = v8::internal::OS::CreateSemaphore(0);
244 // Wait until all threads have signaled the semaphore.
246 semaphore->Wait();
259 delete semaphore;
[all...]
/external/compiler-rt/lib/tsan/output_tests/
H A Dvptr_benign_race.cc2 #include <semaphore.h>
H A Dvptr_harmful_race.cc2 #include <semaphore.h>
/external/libnfc-nxp/Linux_x86/
H A DphOsalNfc_Common.h35 #include <semaphore.h>
/external/valgrind/main/helgrind/tests/
H A Dtc18_semabuse.c14 #include <semaphore.h>
31 /* Do 'wait' on a bogus semaphore. This should fail, but on glibc
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/
H A Dosinclude.h33 #include <semaphore.h>
/external/webkit/Source/WebKit2/Platform/win/
H A DRunLoopWin.cpp82 bool RunLoop::dispatchSentMessagesUntil(const Vector<HWND>& windows, CoreIPC::BinarySemaphore& semaphore, double absoluteTime) argument
85 return semaphore.wait(absoluteTime);
87 HANDLE handle = semaphore.event();
93 // Consider the wait to have timed out, even if the semaphore is currently signaled.
100 // The semaphore was signaled.
/external/libvpx/vp8/common/
H A Dthreading.h42 #include <mach/semaphore.h>
48 #include <semaphore.h>
/external/bluetooth/bluedroid/include/
H A Dbte.h27 #include <semaphore.h>
/external/kernel-headers/original/linux/
H A Dcpu.h26 #include <asm/semaphore.h>
/external/webkit/Source/WebKit/android/WebCoreSupport/
H A DWebCookieJar.cpp250 static scoped_refptr<FlushSemaphore> semaphore(new FlushSemaphore());
251 semaphore->SendFlushRequest(get(false)->cookieStore()->GetCookieMonster());
252 semaphore->SendFlushRequest(get(true)->cookieStore()->GetCookieMonster());
253 semaphore->Wait(2);

Completed in 383 milliseconds

1234