/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
InvalidateAllTest.java | 8 import java.util.concurrent.Semaphore; 18 final Semaphore semaphore = new Semaphore(1); local 19 semaphore.acquire(); 29 semaphore.release(); 34 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS)); 40 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS));
|
/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)
|
/external/skia/src/core/ |
SkSemaphore.cpp | 43 #include <semaphore.h> 63 // We only want to call the OS semaphore when our logical count crosses 68 // SkTMin(-(-3), 5) == 3 times on the OS semaphore, leaving the count at 2. 71 // so we don't call the OS semaphore, leaving the count at (prev + n). 79 static SkBaseSemaphore::OSSemaphore* semaphore(SkBaseSemaphore* semaphore) { function 80 return semaphore->fOSSemaphore.get([](){ return new SkBaseSemaphore::OSSemaphore(); }); 83 void SkBaseSemaphore::osSignal(int n) { semaphore(this)->signal(n); } 85 void SkBaseSemaphore::osWait() { semaphore(this)->wait(); }
|
/prebuilts/ndk/current/platforms/android-12/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/current/platforms/android-13/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/current/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/current/platforms/android-15/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/current/platforms/android-16/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/current/platforms/android-17/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/current/platforms/android-18/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/current/platforms/android-19/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/current/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/current/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/current/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/current/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/current/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/bt/osi/test/ |
semaphore_test.cpp | 11 #include "osi/include/semaphore.h" 16 semaphore_t *semaphore; member in struct:SemaphoreTestSequenceHelper 25 assert(helper->semaphore); 28 semaphore_post(helper->semaphore); 35 semaphore_t *semaphore = semaphore_new(0); local 36 ASSERT_TRUE(semaphore != NULL); 37 semaphore_free(semaphore); 41 semaphore_t *semaphore = semaphore_new(3); local 42 ASSERT_TRUE(semaphore != NULL); 44 EXPECT_TRUE(semaphore_try_wait(semaphore)); 53 semaphore_t *semaphore = semaphore_new(0); local 65 semaphore_t *semaphore = semaphore_new(0); local 73 semaphore_t *semaphore = semaphore_new(0); local [all...] |
alarm_test.cpp | 27 #include "osi/include/semaphore.h" 31 static semaphore_t *semaphore; variable 48 semaphore = semaphore_new(0); 52 semaphore_free(semaphore); 59 semaphore_post(semaphore); 67 semaphore_post(semaphore); 115 semaphore_wait(semaphore); 132 semaphore_wait(semaphore); 151 semaphore_wait(semaphore); 169 semaphore_wait(semaphore); [all...] |
/bionic/benchmarks/ |
semaphore_benchmark.cpp | 18 #include <semaphore.h> 26 sem_t semaphore; local 27 sem_init(&semaphore, 1, 1); 31 sem_getvalue(&semaphore, &dummy); 37 sem_t semaphore; local 38 sem_init(&semaphore, 1, 1); 41 sem_wait(&semaphore); 42 sem_post(&semaphore); 73 sem_t* semaphore = reinterpret_cast<sem_t*>(arg); local 74 while ((BM_semaphore_sem_post_running > 0) && !sem_wait(semaphore)) { 113 sem_t semaphore; member in class:SemaphoreFixture [all...] |
/external/ImageMagick/MagickCore/ |
delegate.h | 26 #include "MagickCore/semaphore.h" 45 *semaphore; member in struct:_DelegateInfo
|
linked-list.c | 52 #include "MagickCore/semaphore.h"
81 *semaphore;
128 LockSemaphoreInfo(list_info->semaphore);
137 UnlockSemaphoreInfo(list_info->semaphore);
179 LockSemaphoreInfo(list_info->semaphore);
193 UnlockSemaphoreInfo(list_info->semaphore);
233 LockSemaphoreInfo(list_info->semaphore);
243 UnlockSemaphoreInfo(list_info->semaphore);
244 RelinquishSemaphoreInfo(&list_info->semaphore);
281 LockSemaphoreInfo(list_info->semaphore);
79 *semaphore; member in struct:_LinkedListInfo [all...] |
/external/deqp/framework/delibs/dethread/unix/ |
deNamedSemaphoreUnix.c | 21 * \brief Unix implementation of semaphore using named semaphores. 31 #include <semaphore.h> 36 sem_t* semaphore; member in struct:NamedSemaphore_s 59 sem->semaphore = sem_open(name, O_CREAT|O_EXCL, mode, initialValue); 61 if (sem->semaphore == SEM_FAILED) 70 void deSemaphore_destroy (deSemaphore semaphore) 72 NamedSemaphore* sem = (NamedSemaphore*)semaphore; 78 res = sem_close(sem->semaphore); 86 void deSemaphore_increment (deSemaphore semaphore) 88 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore [all...] |
/system/bt/osi/src/ |
future.c | 28 #include "osi/include/semaphore.h" 32 semaphore_t *semaphore; // NULL semaphore means immediate future member in struct:future_t 41 ret->semaphore = semaphore_new(0); 42 if (!ret->semaphore) { 43 LOG_ERROR(LOG_TAG, "%s unable to allocate memory for the semaphore.", __func__); 68 semaphore_post(future->semaphore); 74 // If the future is immediate, it will not have a semaphore 75 if (future->semaphore) 76 semaphore_wait(future->semaphore); [all...] |
/external/jmdns/src/javax/jmdns/impl/ |
DNSStatefulObject.java | 7 import java.util.concurrent.Semaphore; 25 * This class define a semaphore. On this multiple threads can wait the arrival of one event. Thread wait for a maximum defined by the timeout. 27 * Implementation note: this class is based on {@link java.util.concurrent.Semaphore} so that they can be released by the timeout timer. 37 private final ConcurrentMap<Thread, Semaphore> _semaphores; 41 * Semaphore name for debugging purposes. 46 _semaphores = new ConcurrentHashMap<Thread, Semaphore>(50); 57 Semaphore semaphore = _semaphores.get(thread); local 58 if (semaphore == null) { 59 semaphore = new Semaphore(1, true) [all...] |
/system/bt/btif/src/ |
stack_manager.c | 32 #include "osi/include/semaphore.h" 69 semaphore_t *semaphore = semaphore_new(0); local 70 thread_post(management_thread, event_init_stack, semaphore); 71 semaphore_wait(semaphore); 72 semaphore_free(semaphore); 86 semaphore_t *semaphore = semaphore_new(0); local 87 thread_post(management_thread, event_clean_up_stack, semaphore); 88 semaphore_wait(semaphore); 89 semaphore_free(semaphore); 100 semaphore_t *semaphore = (semaphore_t *)context local 213 semaphore_t *semaphore = (semaphore_t *)context; local [all...] |