/external/qemu/distrib/sdl-1.2.15/test/ |
testsem.c | 13 static SDL_sem *sem; variable 20 SDL_SemWait(sem); 21 fprintf(stderr, "Thread number %d has got the semaphore (value = %d)!\n", threadnum, SDL_SemValue(sem)); 23 SDL_SemPost(sem); 24 fprintf(stderr, "Thread number %d has released the semaphore (value = %d)!\n", threadnum, SDL_SemValue(sem)); 42 sem = SDL_CreateSemaphore(0); 46 SDL_SemWaitTimeout(sem, 2000); 78 sem = SDL_CreateSemaphore(init_sem); 97 SDL_DestroySemaphore(sem);
|
/bionic/libc/bionic/ |
semaphore.c | 71 /* convert a value into the corresponding sem->count bit pattern */ 74 /* convert a sem->count bit pattern into the corresponding signed value */ 77 /* the value +1 as a sem->count bit-pattern. */ 80 /* the value -1 as a sem->count bit-pattern. */ 87 #define SEM_GET_SHARED(sem) ((sem)->count & SEMCOUNT_SHARED_MASK) 90 int sem_init(sem_t *sem, int pshared, unsigned int value) 92 if (sem == NULL) { 103 sem->count = SEMCOUNT_FROM_VALUE(value); 105 sem->count |= SEMCOUNT_SHARED_MASK [all...] |
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
sem_timedwait.c | 50 sem_t sem; member in struct:__anon11542 59 sem_t s = a->sem; 71 if (WaitForSingleObject(s->sem, 0) == WAIT_OBJECT_0) 98 sem_timedwait (sem_t * sem, const struct timespec *abstime) 106 * sem 128 * EINVAL 'sem' is not a valid semaphore, 138 sem_t s = *sem; 142 if (sem == NULL) 168 if (*sem == NULL) 185 cleanup_args.sem = s [all...] |
sem_init.c | 47 sem_init (sem_t * sem, int pshared, unsigned int value) 55 * sem 75 * EINVAL 'sem' is not a valid semaphore, or 117 s->sem = CreateEvent (NULL, 122 if (0 == s->sem) 135 if ((s->sem = CreateSemaphore (NULL, /* Always NULL */ 165 *sem = s;
|
sem_post_multiple.c | 50 sem_post_multiple (sem_t * sem, int count) 57 * sem 72 * EINVAL 'sem' is not a valid semaphore 81 sem_t s = *sem; 91 if (*sem == NULL) 105 if (SetEvent(s->sem)) 115 if (ReleaseSemaphore (s->sem, (waiters<=count)?waiters:count, 0))
|
semaphore.h | 132 PTW32_DLLPORT int __cdecl sem_init (sem_t * sem, 136 PTW32_DLLPORT int __cdecl sem_destroy (sem_t * sem); 138 PTW32_DLLPORT int __cdecl sem_trywait (sem_t * sem); 140 PTW32_DLLPORT int __cdecl sem_wait (sem_t * sem); 142 PTW32_DLLPORT int __cdecl sem_timedwait (sem_t * sem, 145 PTW32_DLLPORT int __cdecl sem_post (sem_t * sem); 147 PTW32_DLLPORT int __cdecl sem_post_multiple (sem_t * sem, 155 PTW32_DLLPORT int __cdecl sem_close (sem_t * sem); 159 PTW32_DLLPORT int __cdecl sem_getvalue (sem_t * sem,
|
/external/valgrind/main/memcheck/tests/darwin/ |
scalar_nocancel.stderr.exp | 4 Syscall param sem_wait(sem) contains uninitialised byte(s)
|
/external/qemu/distrib/sdl-1.2.15/src/thread/generic/ |
SDL_sysmutex.c | 33 SDL_sem *sem; member in struct:SDL_mutex 45 mutex->sem = SDL_CreateSemaphore(1); 48 if ( ! mutex->sem ) { 62 if ( mutex->sem ) { 63 SDL_DestroySemaphore(mutex->sem); 90 SDL_SemWait(mutex->sem); 125 SDL_SemPost(mutex->sem);
|
/bionic/libc/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/development/ndk/platforms/android-3/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/5/platforms/android-3/arch-arm/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/6/platforms/android-3/arch-arm/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/6/platforms/android-3/arch-x86/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/7/platforms/android-14/arch-arm/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/7/platforms/android-14/arch-x86/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/7/platforms/android-3/arch-arm/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/7/platforms/android-3/arch-x86/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/7/platforms/android-4/arch-arm/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|
/prebuilts/ndk/7/platforms/android-4/arch-x86/usr/include/ |
semaphore.h | 41 extern int sem_init(sem_t *sem, int pshared, unsigned int value); 54 extern int sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
|