HomeSort by relevance Sort by last modified time
    Searched defs:semaphore (Results 26 - 50 of 74) sorted by null

12 3

  /prebuilts/ndk/9/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/9/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/9/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/9/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/9/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/9/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/9/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/9/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/bluetooth/bluedroid/test/suite/support/
callbacks.c 44 sem_t semaphore; member in struct:__anon6350
90 sem_init(&callback_data[i].semaphore, 0, 0);
96 sem_destroy(&callback_data[i].semaphore);
111 return &callback_data[i].semaphore;
  /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...]
  /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...]
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/sync/
ChromiumSyncAdapter.java 24 import java.util.concurrent.Semaphore;
64 Semaphore semaphore = new Semaphore(0); local
68 getStartupCallback(mApplication, account, extras, syncResult, semaphore);
69 startBrowserProcess(callback, syncResult, semaphore);
73 semaphore.acquire();
83 final SyncResult syncResult, Semaphore semaphore) {
108 semaphore.release()
    [all...]
  /external/bluetooth/bluedroid/osi/test/
alarm_test.cpp 8 #include "semaphore.h"
13 static semaphore_t *semaphore; variable
37 semaphore = semaphore_new(0);
54 semaphore_post(semaphore);
138 semaphore_wait(semaphore);
153 semaphore_wait(semaphore);
173 semaphore_wait(semaphore);
178 semaphore_wait(semaphore);
199 semaphore_wait(semaphore);
204 semaphore_wait(semaphore);
    [all...]
  /external/chromium_org/v8/test/cctest/
test-thread-termination.cc 33 v8::internal::Semaphore* semaphore = NULL; variable
37 semaphore->Signal();
167 semaphore->Wait();
180 semaphore = new v8::internal::Semaphore(0);
197 delete semaphore;
198 semaphore = NULL;
380 semaphore = new v8::internal::Semaphore(0)
    [all...]
  /external/deqp/framework/platform/android/
tcuAndroidRenderActivity.hpp 52 MESSAGE_SYNC, //!< Main thread requests sync. Data argument is de::Semaphore* that needs to be incremented.
64 de::Semaphore* semaphore; member in union:tcu::Android::Message::__anon23580
99 Message (MessageType type_, de::Semaphore* semaphore)
103 DE_ASSERT(semaphore);
104 payload.semaphore = semaphore;
  /external/valgrind/main/drd/
drd_clientobj.h 108 UInt value; // Semaphore value.
150 struct semaphore_info semaphore; member in union:drd_clientobj
drd_error.h 142 Addr semaphore; member in struct:__anon36485
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/signin/
OAuth2TokenService.java 25 import java.util.concurrent.Semaphore;
184 final Semaphore semaphore = new Semaphore(0); local
191 semaphore.release();
195 if (semaphore.tryAcquire(timeout, unit)) {
  /external/deqp/framework/delibs/dethread/
deThreadTest.c 428 deSemaphore semaphore = deSemaphore_create(1, DE_NULL); local
429 DE_TEST_ASSERT(semaphore);
431 deSemaphore_increment(semaphore);
432 deSemaphore_decrement(semaphore);
433 deSemaphore_decrement(semaphore);
435 deSemaphore_destroy(semaphore);
  /external/chromium_org/third_party/libusb/src/libusb/os/
wince_usb.c 172 HANDLE semaphore; local
176 semaphore = CreateSemaphore(NULL, 1, 1, sem_name);
177 if (semaphore == NULL) {
178 usbi_err(ctx, "could not create semaphore: %s", windows_error_str(0));
182 // A successful wait brings our semaphore count to 0 (unsignaled)
183 // => any concurent wait stalls until the semaphore's release
184 if (WaitForSingleObject(semaphore, INFINITE) != WAIT_OBJECT_0) {
185 usbi_err(ctx, "failure to access semaphore: %s", windows_error_str(0));
186 CloseHandle(semaphore);
224 usbi_err(ctx, "could not create timer response semaphore - aborting")
290 HANDLE semaphore; local
    [all...]
windows_usb.c 804 HANDLE semaphore; local
808 semaphore = CreateSemaphoreA(NULL, 1, 1, sem_name);
809 if (semaphore == NULL) {
810 usbi_err(ctx, "could not create semaphore: %s", windows_error_str(0));
814 // A successful wait brings our semaphore count to 0 (unsignaled)
815 // => any concurent wait stalls until the semaphore's release
816 if (WaitForSingleObject(semaphore, INFINITE) != WAIT_OBJECT_0) {
817 usbi_err(ctx, "failure to access semaphore: %s", windows_error_str(0));
818 CloseHandle(semaphore);
1686 HANDLE semaphore; local
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/stack/
SIPTransaction.java 47 import java.util.concurrent.Semaphore;
131 private Semaphore semaphore; field in class:SIPTransaction
332 this.semaphore = new Semaphore(1,true);
    [all...]
  /external/valgrind/main/coregrind/m_syswrap/
syswrap-darwin.c 69 #include <semaphore.h>
5127 mach_msg_port_descriptor_t semaphore; member in struct:__anon36335
5147 mach_msg_port_descriptor_t semaphore; member in struct:__anon36336
    [all...]

Completed in 1097 milliseconds

12 3