/external/kernel-headers/original/asm-arm/ |
H A D | semaphore.h | 2 * 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 D | drd_semaphore.h | 41 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 D | drd_semaphore.c | 86 /** 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 D | semaphore_32.h | 14 * 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 D | semlimit.c | 1 #include <semaphore.h>
|
/external/valgrind/main/drd/tests/ |
H A D | tc18_semabuse.stderr.exp | 2 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 D | linuxthreads_det.c | 7 #include <semaphore.h>
|
H A D | sem_as_mutex.c | 1 /* Use a semaphore to implement mutual exclusion. */ 7 #include <semaphore.h>
|
H A D | pth_detached_sem.c | 4 * in this test program the main thread uses a counting semaphore instead 12 #include <semaphore.h>
|
H A D | sem_open.c | 1 /* 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 D | ptrd.h | 301 * 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 D | DNSStatefulObject.java | 25 * 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 D | test-circular-queue.cc | 125 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 D | test-threads.cc | 146 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 D | test-thread-termination.cc | 33 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/libnfc-nxp/Linux_x86/ |
H A D | phOsalNfc_Common.h | 35 #include <semaphore.h>
|
/external/valgrind/main/helgrind/tests/ |
H A D | tc18_semabuse.c | 14 #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 D | osinclude.h | 33 #include <semaphore.h>
|
/external/webkit/Source/WebKit2/Platform/win/ |
H A D | RunLoopWin.cpp | 82 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 D | threading.h | 42 #include <mach/semaphore.h> 48 #include <semaphore.h>
|
/external/kernel-headers/original/linux/ |
H A D | cpu.h | 26 #include <asm/semaphore.h>
|
/external/qemu/distrib/sdl-1.2.12/src/thread/pthread/ |
H A D | SDL_syssem.c | 25 #include <semaphore.h> 42 /* Create a semaphore, initialized with value */ 71 SDL_SetError("Passed a NULL semaphore"); 86 SDL_SetError("Passed a NULL semaphore"); 102 SDL_SetError("Passed a NULL semaphore"); 145 SDL_SetError("Passed a NULL semaphore");
|
/external/webkit/Source/WebKit/android/WebCoreSupport/ |
H A D | WebCookieJar.cpp | 250 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);
|
/external/chromium/chrome/browser/debugger/ |
H A D | devtools_remote_listen_socket_unittest.h | 19 #include <semaphore.h>
|
/external/kernel-headers/original/linux/raid/ |
H A D | md.h | 22 #include <asm/semaphore.h>
|