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

1 2

  /external/v8/test/cctest/
test-lock.cc 45 Semaphore* sem = OS::CreateSemaphore(0); local
48 ok = sem->Wait(0);
50 ok = sem->Wait(100);
52 ok = sem->Wait(1000);
56 sem->Signal();
57 ok = sem->Wait(0);
58 sem->Signal();
59 ok = sem->Wait(100);
60 sem->Signal();
61 ok = sem->Wait(1000)
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/dc/
SDL_syssem.c 42 void SDL_DestroySemaphore(SDL_sem *sem)
47 int SDL_SemTryWait(SDL_sem *sem)
53 int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
59 int SDL_SemWait(SDL_sem *sem)
65 Uint32 SDL_SemValue(SDL_sem *sem)
70 int SDL_SemPost(SDL_sem *sem)
78 #include <kos/sem.h>
82 semaphore_t sem; member in struct:SDL_semaphore
93 void SDL_DestroySemaphore(SDL_sem *sem)
95 if ( ! sem ) {
    [all...]
  /external/qemu/distrib/sdl-1.2.12/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);
SDL_syssem.c 39 void SDL_DestroySemaphore(SDL_sem *sem)
44 int SDL_SemTryWait(SDL_sem *sem)
50 int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
56 int SDL_SemWait(SDL_sem *sem)
62 Uint32 SDL_SemValue(SDL_sem *sem)
67 int SDL_SemPost(SDL_sem *sem)
85 SDL_sem *sem; local
87 sem = (SDL_sem *)SDL_malloc(sizeof(*sem));
88 if ( ! sem ) {
    [all...]
  /external/valgrind/main/helgrind/tests/
tc24_nonzero_sem.c 16 sem_t* sem = (sem_t*)semV; local
17 r= my_sem_wait(sem); assert(!r);
24 sem_t sem; local
27 r= my_sem_init(&sem, "sem1", 0, N_THREADS); assert(!r);
30 r= pthread_create( &child[i], NULL, child_fn, (void*)&sem );
39 r= my_sem_destroy(&sem); assert(!r);
  /external/qemu/distrib/sdl-1.2.12/src/main/epoc/
SDL_main.cpp 87 RSemaphore sem; local
88 sem.CreateGlobal(_L("WsExeSem"),0);
89 RegisterWsExe(sem.FullName());
  /external/qemu/distrib/sdl-1.2.12/src/thread/amigaos/
SDL_syssem.c 32 struct SignalSemaphore Sem;
41 SDL_sem *sem; local
43 sem = (SDL_sem *)SDL_malloc(sizeof(*sem));
45 if ( ! sem ) {
50 D(bug("Creating semaphore %lx...\n",sem));
52 SDL_memset(sem,0,sizeof(*sem));
54 InitSemaphore(&sem->Sem);
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/beos/
SDL_syssem.c 38 SDL_sem *sem; local
40 sem = (SDL_sem *)SDL_malloc(sizeof(*sem));
41 if ( sem ) {
42 sem->id = create_sem(initial_value, "SDL semaphore");
43 if ( sem->id < B_NO_ERROR ) {
45 SDL_free(sem);
46 sem = NULL;
51 return(sem);
55 void SDL_DestroySemaphore(SDL_sem *sem)
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/pthread/
SDL_syssem.c 39 sem_t sem; member in struct:SDL_semaphore
45 SDL_sem *sem = (SDL_sem *) SDL_malloc(sizeof(SDL_sem)); local
46 if ( sem ) {
47 if ( sem_init(&sem->sem, 0, initial_value) < 0 ) {
49 SDL_free(sem);
50 sem = NULL;
55 return sem;
58 void SDL_DestroySemaphore(SDL_sem *sem)
60 if ( sem ) {
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/riscos/
SDL_syssem.c 42 void SDL_DestroySemaphore(SDL_sem *sem)
47 int SDL_SemTryWait(SDL_sem *sem)
53 int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
59 int SDL_SemWait(SDL_sem *sem)
65 Uint32 SDL_SemValue(SDL_sem *sem)
70 int SDL_SemPost(SDL_sem *sem)
84 sem_t *sem; member in struct:SDL_semaphore
91 SDL_sem *sem = (SDL_sem *) SDL_malloc(sizeof(SDL_sem)); local
92 if ( sem ) {
93 if ( sem_init(&sem->sem_data, 0, initial_value) < 0 )
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/win32/
SDL_syssem.c 48 SDL_sem *sem; local
50 /* Allocate sem memory */
51 sem = (SDL_sem *)SDL_malloc(sizeof(*sem));
52 if ( sem ) {
55 sem->id = CreateSemaphoreCE(NULL, initial_value, 32*1024, NULL);
57 sem->id = CreateSemaphore(NULL, initial_value, 32*1024, NULL);
59 sem->count = initial_value;
60 if ( ! sem->id ) {
62 SDL_free(sem);
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/irix/
SDL_syssem.c 32 #include <sys/sem.h>
68 SDL_sem *sem; local
71 sem = (SDL_sem *)SDL_malloc(sizeof(*sem));
72 if ( sem == NULL ) {
76 sem->id = semget(IPC_PRIVATE, 1, (0600|IPC_CREAT));
77 if ( sem->id < 0 ) {
79 SDL_free(sem);
83 semctl(sem->id, 0, SETVAL, init);
84 return(sem);
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/os2/
SDL_syssem.c 45 SDL_sem *sem; local
48 /* Allocate sem memory */
49 sem = (SDL_sem *)SDL_malloc(sizeof(*sem));
50 if ( sem ) {
52 ulrc = DosCreateMutexSem(NULL,&(sem->id),0,TRUE);
55 SDL_free(sem);
56 sem = NULL;
59 DosCreateEventSem(NULL, &(sem->changed), 0, FALSE);
60 sem->value = initial_value
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/thread/epoc/
SDL_syssem.cpp 64 SDL_semaphore* sem = new /*(ELeave)*/ SDL_semaphore; local
65 sem->handle = s.Handle();
66 sem->count = initial_value;
67 return(sem);
71 void SDL_DestroySemaphore(SDL_sem *sem)
73 if ( sem )
76 sema.SetHandle(sem->handle);
79 delete sem;
80 sem = NULL;
108 void _WaitAll(SDL_sem *sem)
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
OldThreadTest.java 309 final Semaphore sem = new Semaphore(0); local
314 while (!sem.hasQueuedThreads()) {}
315 sem.release();
322 sem.acquire();
333 sem.release();
347 sem.acquire();
355 sem.release();
361 sem.acquire();
  /external/chromium/base/memory/
singleton_unittest.cc 202 base::ShadowingAtExitManager sem; local
237 base::ShadowingAtExitManager sem; local
  /external/valgrind/unittest/
posix_tests.cc 112 sem_t sem[2]; member in namespace:test75
116 sem_post(&sem[0]);
117 sem_post(&sem[1]);
121 sem_wait(&sem[0]);
126 sem_trywait(&sem[1]);
132 sem_init(&sem[0], 0, 0);
133 sem_init(&sem[1], 0, 0);
149 sem_destroy(&sem[0]);
150 sem_destroy(&sem[1]);
343 const char *kSemName = "drt-test-sem";
351 sem_t *sem = sem_open(kSemName, O_CREAT, 0600, 3); local
367 sem_t *sem = DoSemOpen(); local
386 sem_t* sem = DoSemOpen(); local
    [all...]
windows_tests.cc 506 void Poster(int *var, HANDLE sem) {
508 ReleaseSemaphore(sem, 1, NULL);
511 void Waiter(int *var, HANDLE sem) {
512 DWORD ret = ::WaitForSingleObject(sem, INFINITE);
518 HANDLE sem = CreateSemaphore(NULL, local
522 ASSERT_TRUE(sem != NULL);
528 tp.Add(NewCallback(Waiter, &VAR, sem));
529 tp.Add(NewCallback(Poster, &VAR, sem));
532 CloseHandle(sem);
  /hardware/ti/omap4xxx/camera/
ANativeWindowDisplayAdapter.cpp 191 Semaphore sem; local
211 sem.Create();
215 msg.arg1 = &sem;
221 sem.Wait();
355 Semaphore sem; local
386 sem.Create();
390 msg.arg1 = &sem;
396 sem.Wait();
434 Semaphore sem; local
435 sem.Create()
1012 Semaphore &sem = *((Semaphore*)msg.arg1); local
    [all...]
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/X11/
Xthreads.h 105 HANDLE sem; member in struct:_xthread_waiter
144 WaitForSingleObject(_tmpthr->sem, INFINITE); \
150 ReleaseSemaphore((cv)->waiters->sem, 1, NULL); \
159 ReleaseSemaphore(_tmpthr->sem, 1, NULL); \
  /bionic/libc/kernel/common/linux/
device.h 107 struct semaphore sem; member in class:__anon215
184 struct semaphore sem; member in struct:device
  /development/ndk/platforms/android-3/include/linux/
device.h 107 struct semaphore sem; member in class:__anon877
184 struct semaphore sem; member in struct:device
  /external/kernel-headers/original/linux/
sem.h 27 struct sem *sem_base; /* ptr to first semaphore in array */
85 struct sem { struct
96 struct sem *sem_base; /* ptr to first semaphore in array */
112 int id; /* internal sem id */
  /external/stlport/stlport/stl/
_threads.h 371 sem_id sem; member in struct:_STLP_mutex_base
373 sem = create_sem(1, "STLPort");
374 assert(sem > 0);
377 int t = delete_sem(sem);
382 status_t t = release_sem(sem);
656 if (sem == 0) {
662 if (sem == 0) _M_initialize();
672 t = acquire_sem(sem);
  /ndk/sources/cxx-stl/stlport/stlport/stl/
_threads.h 371 sem_id sem; member in struct:_STLP_mutex_base
373 sem = create_sem(1, "STLPort");
374 assert(sem > 0);
377 int t = delete_sem(sem);
382 status_t t = release_sem(sem);
656 if (sem == 0) {
662 if (sem == 0) _M_initialize();
672 t = acquire_sem(sem);

Completed in 797 milliseconds

1 2