/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 | 25 // Semaphore state information: owner thread and recursion count. 40 struct semaphore_info* DRD_(semaphore_init)(const Addr semaphore, 43 void DRD_(semaphore_destroy)(const Addr semaphore); 44 struct semaphore_info* DRD_(semaphore_open)(const Addr semaphore, 47 void DRD_(semaphore_close)(const Addr semaphore); 48 void DRD_(semaphore_pre_wait)(const Addr semaphore); 49 void DRD_(semaphore_post_wait)(const DrdThreadId tid, const Addr semaphore, 51 void DRD_(semaphore_pre_post)(const DrdThreadId tid, const Addr semaphore); 52 void DRD_(semaphore_post_post)(const DrdThreadId tid, const Addr semaphore,
|
drd_semaphore.c | 85 /** Enable or disable tracing of semaphore actions. */ 93 * client semaphore at client addres 'semaphore'. 97 const Addr semaphore) 99 tl_assert(semaphore != 0); 100 tl_assert(p->a1 == semaphore); 127 "Destruction of semaphore that is being waited" 138 * client semaphore. Allocate a new structure if such a structure did not 143 drd_semaphore_get_or_allocate(const Addr semaphore) 147 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...] |
/cts/suite/audio_quality/lib/include/ |
Semaphore.h | 21 #include <semaphore.h> 26 * Simple semaphore interface for synchronization between client and server 28 class Semaphore { 30 Semaphore(int count = 0); 32 ~Semaphore(); 34 /// down semaphore if it is already positive.
|
/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:
|
/bionic/libc/kernel/arch-arm/asm/ |
semaphore.h | 29 struct semaphore { struct 36 #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/av/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:__anon18771 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...] |
/prebuilts/ndk/4/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)
|
/prebuilts/ndk/4/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)
|
/prebuilts/ndk/4/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)
|
/prebuilts/ndk/4/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)
|
/prebuilts/ndk/5/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)
|
/prebuilts/ndk/6/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)
|
/prebuilts/ndk/7/platforms/android-14/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)
|
/prebuilts/ndk/7/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)
|
/prebuilts/ndk/7/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)
|
/prebuilts/ndk/7/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)
|
/prebuilts/ndk/7/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)
|
/prebuilts/ndk/7/platforms/android-9/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)
|
/prebuilts/ndk/8/platforms/android-14/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)
|