/bionic/libc/kernel/arch-arm/asm/ |
semaphore.h | 23 struct semaphore { struct 31 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,count)
|
/development/ndk/platforms/android-3/arch-arm/include/asm/ |
semaphore.h | 23 struct semaphore { struct 31 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,count)
|
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/asm/ |
semaphore.h | 23 struct semaphore { struct 31 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,count)
|
/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/asm/ |
semaphore.h | 23 struct semaphore { struct 31 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,count)
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/asm/ |
semaphore.h | 23 struct semaphore { struct 31 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,count)
|
/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/asm/ |
semaphore.h | 23 struct semaphore { struct 31 #define __DECLARE_SEMAPHORE_GENERIC(name,count) struct semaphore name = __SEMAPHORE_INIT(name,count)
|
/system/extras/tests/bionic/libc/common/ |
test_sem_post.c | 30 * threads that are waiting on a single semaphore, and not all of 35 #include <semaphore.h> 41 static sem_t semaphore; variable 43 /* Thread function, just wait for the semaphore */ 63 * this is used to exercize more of the semaphore code path */ 64 if ( sem_init( &semaphore, 0, 1 ) < 0 ) { 65 printf( "Could not initialize semaphore: %s\n", strerror(errno) ); 70 if ( pthread_create( &t[nn], NULL, thread_func, &semaphore ) < 0 ) { 78 sem_post(&semaphore); 89 if (sem_getvalue(&semaphore, &value) < 0) [all...] |
test_semaphore.c | 29 #include <semaphore.h> 36 /* a simple semaphore test, using three threads 38 * a semaphore is initialized with a value of 1 42 * Thread 1 takes the semaphore, then sleeps for 2 seconds, then post the semaphore 43 * Thread 2 sleeps for 1 second, then waits the semaphore, sleeps for 2 seconds, then post the semaphoe 44 * Thread 3 sleeps 3 seconds, waits for the semaphore 47 static sem_t semaphore; variable 52 printf( "thread 1: waiting for semaphore\n" ); 53 if ( sem_wait( &semaphore ) < 0 ) [all...] |
/external/kernel-headers/original/asm-arm/ |
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 * sem) [all...] |
/external/kernel-headers/original/asm-x86/ |
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 *sem [all...] |
/external/v8/test/cctest/ |
test-thread-termination.cc | 33 v8::internal::Semaphore* semaphore = NULL; variable 37 semaphore->Signal(); 151 semaphore->Wait(); 160 semaphore = v8::internal::OS::CreateSemaphore(0); 174 delete semaphore; 175 semaphore = NULL; 211 semaphore = v8::internal::OS::CreateSemaphore(0); 217 // Wait until both threads have signaled the semaphore. 218 semaphore->Wait() [all...] |
/frameworks/base/include/ui/ |
InputTransport.h | 33 #include <semaphore.h> 102 /* Semaphore count is set to 1 when the message is published. 106 sem_t semaphore; member in struct:android::InputMessage
|
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
SIPTransaction.java | 47 import java.util.concurrent.Semaphore; 131 private Semaphore semaphore; field in class:SIPTransaction 332 this.semaphore = new Semaphore(1,true); [all...] |
/prebuilt/common/ant/ |
ant.jar | |