/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/valgrind/main/drd/ |
drd_semaphore.h | 26 // Semaphore state information: owner thread and recursion count. 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,
|
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) 148 tl_assert(offsetof(DrdClientobj, semaphore) == 0) [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...] |
/system/extras/tests/bionic/libc/common/ |
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...] |
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...] |
/external/valgrind/main/none/tests/ |
semlimit.c | 1 #include <semaphore.h>
|
/external/valgrind/main/drd/tests/ |
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:
|
linuxthreads_det.c | 7 #include <semaphore.h>
|
/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)
|
/frameworks/media/libvideoeditor/osal/src/ |
M4OSA_Semaphore.c | 19 * @brief Semaphore for Windows 20 * @note This file implements functions to manipulate semaphore 32 #include <semaphore.h> 40 /* Context for the semaphore */ 42 M4OSA_UInt32 coreID; /* semaphore context identifiant */ 43 sem_t semaphore; /* semaphore */ member in struct:__anon15839 51 * @brief This method creates a new semaphore with the "initialCounter" 56 * parameter will be sent back to any OSAL core semaphore functions 57 * to allow retrieving data associated to the opened semaphore [all...] |
/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)
|
/prebuilt/ndk/android-ndk-r5/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-r6/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)
|
/bionic/libc/kernel/common/linux/ |
cpu.h | 19 #include <asm/semaphore.h>
|
/development/ndk/platforms/android-3/include/linux/ |
cpu.h | 19 #include <asm/semaphore.h>
|
/packages/apps/Camera/jni/ |
mosaic_renderer_jni.h | 2 #include <semaphore.h>
|
/prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/ |
cpu.h | 19 #include <asm/semaphore.h>
|
/prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/ |
cpu.h | 19 #include <asm/semaphore.h>
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/ |
cpu.h | 19 #include <asm/semaphore.h>
|
/prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/linux/ |
cpu.h | 19 #include <asm/semaphore.h>
|