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

1 2 3

  /bionic/libc/include/sys/
sem.h 32 #include <linux/sem.h>
  /development/ndk/platforms/android-L/include/sys/
sem.h 32 #include <linux/sem.h>
  /external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
sem_close.c 54 sem_close (sem_t * sem)
sem_getvalue.c 50 sem_getvalue (sem_t * sem, int *sval)
65 * EINVAL 'sem' is not a valid semaphore,
71 * sem pointer to an instance of sem_t
77 * pointed to by sem in the int pointed to by sval.
80 if (sem == NULL || *sem == NULL || sval == NULL)
88 register sem_t s = *sem;
95 if (*sem == NULL)
sem_destroy.c 50 sem_destroy (sem_t * sem)
57 * sem
67 * EINVAL 'sem' is not a valid semaphore,
70 * blocked on 'sem'
78 if (sem == NULL || *sem == NULL)
84 s = *sem;
97 if (!CloseHandle (s->sem))
112 *sem = NULL;
sem_post.c 50 sem_post (sem_t * sem)
57 * sem
69 * EINVAL 'sem' is not a valid semaphore,
77 sem_t s = *sem;
87 if (*sem == NULL)
98 && !SetEvent(s->sem))
105 && !ReleaseSemaphore (s->sem, 1, NULL))
sem_wait.c 50 ptw32_sem_wait_cleanup(void * sem)
52 sem_t s = (sem_t) sem;
63 if (*((sem_t *)sem) != NULL && !(WaitForSingleObject(s->sem, 0) == WAIT_OBJECT_0))
83 sem_wait (sem_t * sem)
90 * sem
105 * EINVAL 'sem' is not a valid semaphore,
114 sem_t s = *sem;
130 if (*sem == NULL)
147 result = pthreadCancelableWait (s->sem);
    [all...]
ptw32_semwait.c 45 ptw32_semwait (sem_t * sem)
61 * EINVAL 'sem' is not a valid semaphore,
70 sem_t s = *sem;
84 if (*sem == NULL)
97 if (WaitForSingleObject (s->sem, INFINITE) == WAIT_OBJECT_0)
102 if (*sem == NULL)
112 SetEvent(s->sem);
sem_trywait.c 50 sem_trywait (sem_t * sem)
57 * sem
71 * EINVAL 'sem' is not a valid semaphore,
80 sem_t s = *sem;
90 if (*sem == NULL)
sem_timedwait.c 50 sem_t sem; member in struct:__anon13570
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/chromium_org/third_party/npapi/npspy/extern/nspr/obsolete/
prsem.h 58 NSPR_API(void) PR_DestroySem(PRSemaphore *sem); variable
64 ** state of the semahore sem. The thread can proceed only if the counter value
65 ** of the semaphore sem is currently greater than 0. If the value of semaphore
66 ** sem is positive, it is decremented by one and the routine returns immediately
67 ** allowing the calling thread to continue. If the value of semaphore sem is 0,
74 NSPR_API(PRStatus) PR_WaitSem(PRSemaphore *sem); variable
81 NSPR_API(void) PR_PostSem(PRSemaphore *sem); variable
84 ** Returns the value of the semaphore referenced by sem without affecting
89 NSPR_API(PRUintn) PR_GetValueSem(PRSemaphore *sem); variable
  /external/deqp/framework/delibs/dethread/unix/
deSemaphoreUnix.c 36 sem_t* sem = (sem_t*)deMalloc(sizeof(sem_t)); local
40 if (!sem)
43 if (sem_init(sem, 0, initialValue) != 0)
45 deFree(sem);
49 return (deSemaphore)sem;
54 sem_t* sem = (sem_t*)semaphore; local
55 DE_ASSERT(sem);
56 sem_destroy(sem);
57 deFree(sem);
62 sem_t* sem = (sem_t*)semaphore local
70 sem_t* sem = (sem_t*)semaphore; local
78 sem_t* sem = (sem_t*)semaphore; local
    [all...]
deNamedSemaphoreUnix.c 39 static void NamedSemaphore_getName (const NamedSemaphore* sem, char* buf, int bufSize)
41 deSprintf(buf, bufSize, "/desem-%d-%p", getpid(), (void*)sem);
48 NamedSemaphore* sem = (NamedSemaphore*)deCalloc(sizeof(NamedSemaphore)); local
54 if (!sem)
57 NamedSemaphore_getName(sem, name, DE_LENGTH_OF_ARRAY(name));
59 sem->semaphore = sem_open(name, O_CREAT|O_EXCL, mode, initialValue);
61 if (sem->semaphore == SEM_FAILED)
63 deFree(sem);
67 return (deSemaphore)sem;
72 NamedSemaphore* sem = (NamedSemaphore*)semaphore local
88 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; local
96 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; local
104 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; local
    [all...]
  /external/libsepol/tests/policies/test-deps/
modreq-obj-global.conf 4 class sem { create destroy };
12 allow mod_foo_t mod_bar_t : sem { create destroy };
modreq-obj-opt.conf 14 class sem { create destroy };
19 allow mod_foo_t mod_bar_t : sem { create destroy };
  /external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/
threading.h 88 #define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL)
89 #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE))
90 #define sem_post(sem) ReleaseSemaphore(*sem,1,NULL)
91 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
103 static inline int sem_init(sem_t *sem, int pshared, unsigned int value
    [all...]
  /external/libvpx/libvpx/vp8/common/
threading.h 88 #define sem_init(sem, sem_attr1, sem_init_value) (int)((*sem = CreateSemaphore(NULL,0,32768,NULL))==NULL)
89 #define sem_wait(sem) (int)(WAIT_OBJECT_0 != WaitForSingleObject(*sem,INFINITE))
90 #define sem_post(sem) ReleaseSemaphore(*sem,1,NULL)
91 #define sem_destroy(sem) if(*sem)((int)(CloseHandle(*sem))==TRUE)
103 static inline int sem_init(sem_t *sem, int pshared, unsigned int value
    [all...]
  /external/chromium_org/third_party/npapi/npspy/extern/nspr/
pripcsem.h 102 NSPR_API(PRStatus) PR_WaitSemaphore(PRSem *sem); variable
110 NSPR_API(PRStatus) PR_PostSemaphore(PRSem *sem); variable
118 NSPR_API(PRStatus) PR_CloseSemaphore(PRSem *sem); variable
  /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/libhevc/common/
ithread.h 69 WORD32 ithread_sem_init(void *sem, WORD32 pshared, UWORD32 value);
71 WORD32 ithread_sem_post(void *sem);
73 WORD32 ithread_sem_wait(void *sem);
75 WORD32 ithread_sem_destroy(void *sem);
  /bionic/libc/include/
semaphore.h 44 extern int sem_init(sem_t *sem, int pshared, unsigned int value);
57 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);

Completed in 406 milliseconds

1 2 3