/external/valgrind/helgrind/tests/ |
tc24_nonzero_sem.c | 15 static sem_t* my_sem_init(char*, int, unsigned); 16 static int my_sem_destroy(sem_t*); 17 static int my_sem_wait(sem_t*); //static int my_sem_post(sem_t*); 21 sem_t* sem = (sem_t*)semV; 29 sem_t* sem; 49 static sem_t* my_sem_init (char* identity, int pshared, unsigned count) 51 sem_t* s; 79 static int my_sem_destroy ( sem_t* s [all...] |
tc23_bogus_condwait.c | 12 sem_t* quit_now; 13 static sem_t* my_sem_init(char*, int, unsigned); 14 static int my_sem_destroy(sem_t*); 15 static int my_sem_wait(sem_t*); static int my_sem_post(sem_t*); 97 static sem_t* my_sem_init (char* identity, int pshared, unsigned count) 99 sem_t* s; 127 static int my_sem_destroy ( sem_t* s ) 132 static int my_sem_wait(sem_t* s) 137 static int my_sem_post(sem_t* s [all...] |
tc17_sembar.c | 28 static sem_t* my_sem_init(char*, int, unsigned); 29 static int my_sem_destroy(sem_t*); 30 static int my_sem_wait(sem_t*); static int my_sem_post(sem_t*); 35 sem_t* sem1; 36 sem_t* sem2; 39 sem_t* xxx; 221 static sem_t* my_sem_init (char* identity, int pshared, unsigned count) 223 sem_t* s; 251 static int my_sem_destroy ( sem_t* s [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
semaphore.h | 50 typedef void *sem_t; typedef 54 int WINPTHREAD_SEMA_API sem_init(sem_t * sem, int pshared, unsigned int value); 56 int WINPTHREAD_SEMA_API sem_destroy(sem_t *sem); 58 int WINPTHREAD_SEMA_API sem_trywait(sem_t *sem); 60 int WINPTHREAD_SEMA_API sem_wait(sem_t *sem); 62 int WINPTHREAD_SEMA_API sem_timedwait(sem_t * sem, const struct timespec *t); 64 int WINPTHREAD_SEMA_API sem_post(sem_t *sem); 66 int WINPTHREAD_SEMA_API sem_post_multiple(sem_t *sem, int count); 69 sem_t * WINPTHREAD_SEMA_API sem_open(const char * name, int oflag, mode_t mode, unsigned int value); 71 int WINPTHREAD_SEMA_API sem_close(sem_t * sem) [all...] |
/bionic/tests/headers/posix/ |
semaphore_h.c | 34 TYPE(sem_t); 38 FUNCTION(sem_close, int (*f)(sem_t*)); 39 FUNCTION(sem_destroy, int (*f)(sem_t*)); 40 FUNCTION(sem_getvalue, int (*f)(sem_t*, int*)); 41 FUNCTION(sem_init, int (*f)(sem_t*, int, unsigned)); 42 FUNCTION(sem_open, sem_t* (*f)(const char*, int, ...)); 43 FUNCTION(sem_post, int (*f)(sem_t*)); 44 FUNCTION(sem_timedwait, int (*f)(sem_t*, const struct timespec*)); 45 FUNCTION(sem_trywait, int (*f)(sem_t*)); 47 FUNCTION(sem_wait, int (*f)(sem_t*)); [all...] |
/bionic/libc/include/ |
semaphore.h | 43 } sem_t; typedef in typeref:struct:__anon308 45 #define SEM_FAILED __BIONIC_CAST(reinterpret_cast, sem_t*, 0) 47 int sem_destroy(sem_t* __sem); 48 int sem_getvalue(sem_t* __sem, int* __value); 49 int sem_init(sem_t* __sem, int __shared, unsigned int __value); 50 int sem_post(sem_t* __sem); 51 int sem_timedwait(sem_t* __sem, const struct timespec* __ts); 58 int sem_timedwait_monotonic_np(sem_t* __sem, const struct timespec* __ts) __INTRODUCED_IN(28); 59 int sem_trywait(sem_t* __sem); 60 int sem_wait(sem_t* __sem) [all...] |
/external/deqp/framework/delibs/dethread/unix/ |
deSemaphoreUnix.c | 32 DE_STATIC_ASSERT(sizeof(deSemaphore) >= sizeof(sem_t*)); 36 sem_t* sem = (sem_t*)deMalloc(sizeof(sem_t)); 55 sem_t* sem = (sem_t*)semaphore; 63 sem_t* sem = (sem_t*)semaphore; 71 sem_t* sem = (sem_t*)semaphore [all...] |
/external/valgrind/none/tests/ |
semlimit.c | 8 sem_t s[SEM_LIMIT];
|
/external/autotest/utils/named_semaphore/ |
namedsem.c | 8 *((sem_t **)address) = PyLong_AsVoidPtr(object); 19 sem_t *result; 30 sem_t *sem; 54 sem_t *sem; 66 sem_t *sem; 79 sem_t *sem;
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/ |
semaphore.h | 29 /* Get the definition for sem_t. */ 37 extern int sem_init (sem_t *__sem, int __pshared, unsigned int __value) 40 extern int sem_destroy (sem_t *__sem) __THROW; 43 extern sem_t *sem_open (__const char *__name, int __oflag, ...) __THROW; 46 extern int sem_close (sem_t *__sem) __THROW; 55 extern int sem_wait (sem_t *__sem); 62 extern int sem_timedwait (sem_t *__restrict __sem, 67 extern int sem_trywait (sem_t *__sem) __THROWNL; 70 extern int sem_post (sem_t *__sem) __THROWNL; 73 extern int sem_getvalue (sem_t *__restrict __sem, int *__restrict __sval [all...] |
/external/valgrind/drd/tests/ |
annotate_sem.c | 21 } sem_t; typedef in typeref:struct:__anon42615 23 static sem_t s_sem; 26 static void sem_init(sem_t *p, unsigned value) 33 static void sem_destroy(sem_t *p) 38 static void sem_wait(sem_t *p) 53 static void sem_post(sem_t *p)
|
pth_inconsistent_cond_wait.c | 41 static sem_t* s_sem; 45 static sem_t* create_semaphore(const char* const name) 50 sem_t* p = sem_open(name_and_pid, O_CREAT | O_EXCL, 0600, 0); 57 sem_t* p = malloc(sizeof(*p)); 64 static void destroy_semaphore(const char* const name, sem_t* p)
|
/bionic/tests/ |
semaphore_test.cpp | 30 sem_t s; 56 sem_t s; 67 static void SemWaitThreadTestFn(sem_t& sem) { 72 SemWaitThreadTestFn(*reinterpret_cast<sem_t*>(arg)); 77 sem_t s; 105 int (*wait_function)(sem_t* __sem, const timespec* __ts)) { 106 sem_t s; 150 sem_t s; 157 sem_t s; 183 sem_t* sem = reinterpret_cast<sem_t*>(arg) [all...] |
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
sem_init_glibc.cc | 2 // This test depends on the glibc layout of struct sem_t and checks that we 3 // don't leave sem_t::private uninitialized. 21 sem_t sem;
|
/external/libhevc/common/ |
ithread.c | 126 return (sizeof(sem_t)); 131 return sem_init((sem_t *)sem, pshared, value); 136 return sem_post((sem_t *)sem); 141 return sem_wait((sem_t *)sem); 146 return sem_destroy((sem_t *)sem);
|
/external/compiler-rt/test/msan/ |
sem_getvalue.cc | 8 sem_t sem;
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/i386-linux-gnu/bits/ |
semaphore.h | 29 #define SEM_FAILED ((sem_t *) 0) 36 } sem_t; typedef in typeref:union:__anon62295
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/x86_64-linux-gnu/bits/ |
semaphore.h | 34 #define SEM_FAILED ((sem_t *) 0) 41 } sem_t; typedef in typeref:union:__anon63162
|
/external/libavc/common/ |
ithread.c | 136 return(sizeof(sem_t)); 142 return sem_init((sem_t *)sem,pshared,value); 147 return sem_post((sem_t *)sem); 153 return sem_wait((sem_t *)sem); 159 return sem_destroy((sem_t *)sem);
|
/external/libmpeg2/common/ |
ithread.c | 134 return(sizeof(sem_t)); 139 return sem_init((sem_t *)sem,pshared,value); 144 return sem_post((sem_t *)sem); 149 return sem_wait((sem_t *)sem); 154 return sem_destroy((sem_t *)sem);
|
/external/libvpx/libvpx/vp8/common/ |
threading.h | 91 #define sem_t HANDLE macro 108 } sem_t; typedef in typeref:struct:__anon26132 110 static inline int sem_init(sem_t *sem, int pshared, unsigned int value) { 121 static inline int sem_wait(sem_t *sem) { 142 static inline int sem_post(sem_t *sem) { 155 static inline int sem_destroy(sem_t *sem) { 168 #define sem_t semaphore_t macro
|
/bionic/libc/bionic/ |
semaphore.cpp | 89 static inline atomic_uint* SEM_TO_ATOMIC_POINTER(sem_t* sem) { 104 int sem_init(sem_t* sem, int pshared, unsigned int value) { 121 int sem_destroy(sem_t*) { 125 sem_t* sem_open(const char*, int, ...) { 130 int sem_close(sem_t*) { 215 int sem_wait(sem_t* sem) { 234 static int __sem_timedwait(sem_t* sem, const timespec* abs_timeout, bool use_realtime_clock) { 271 int sem_timedwait(sem_t* sem, const timespec* abs_timeout) { 275 int sem_timedwait_monotonic_np(sem_t* sem, const timespec* abs_timeout) { 279 int sem_post(sem_t* sem) [all...] |
/cts/suite/audio_quality/lib/include/ |
Semaphore.h | 44 sem_t mSem;
|
/external/compiler-rt/test/tsan/ |
vptr_harmful_race.cc | 18 sem_t sem_;
|
vptr_harmful_race2.cc | 18 sem_t sem_;
|