HomeSort by relevance Sort by last modified time
    Searched defs:semaphore (Results 1 - 25 of 46) sorted by null

1 2

  /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)
  /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)
  /prebuilts/ndk/8/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/8/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/8/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/8/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/8/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)
  /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-circular-queue.cc 88 i::Semaphore* finished)
109 i::Semaphore* finished_;
125 i::Semaphore* semaphore = i::OS::CreateSemaphore(0); local
133 ProducerThread producer1(&scq, kRecordsPerChunk, 1, semaphore);
134 ProducerThread producer2(&scq, kRecordsPerChunk, 10, semaphore);
135 ProducerThread producer3(&scq, kRecordsPerChunk, 20, semaphore);
139 semaphore->Wait();
151 semaphore->Wait();
163 semaphore->Wait()
    [all...]

Completed in 327 milliseconds

1 2