Searched refs:sem_t (Results 1 - 25 of 65) sorted by relevance

123

/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
H A Dsem_close.c54 sem_close (sem_t * sem)
H A Dsemaphore.h130 typedef struct sem_t_ * sem_t; typedef in typeref:struct:sem_t_
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 * se
[all...]
H A Dsem_getvalue.c50 sem_getvalue (sem_t * sem, int *sval)
71 * sem pointer to an instance of sem_t
88 register sem_t s = *sem;
H A Dsem_trywait.c50 sem_trywait (sem_t * sem)
58 * pointer to an instance of sem_t
80 sem_t s = *sem;
H A Dsem_wait.c52 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)
91 * pointer to an instance of sem_t
114 sem_t s = *sem;
H A Dsem_init.c47 sem_init (sem_t * sem, int pshared, unsigned int value)
56 * pointer to an instance of sem_t
86 sem_t s = NULL;
102 s = (sem_t) calloc (1, sizeof (*s));
H A Dsem_destroy.c50 sem_destroy (sem_t * sem)
58 * pointer to an instance of sem_t
76 sem_t s = NULL;
H A Dsem_post.c50 sem_post (sem_t * sem)
58 * pointer to an instance of sem_t
77 sem_t s = *sem;
H A Dptw32_semwait.c45 ptw32_semwait (sem_t * sem)
70 sem_t s = *sem;
H A Dsem_post_multiple.c50 sem_post_multiple (sem_t * sem, int count)
58 * pointer to an instance of sem_t
81 sem_t s = *sem;
H A Dsem_timedwait.c50 sem_t sem;
59 sem_t s = a->sem;
98 sem_timedwait (sem_t * sem, const struct timespec *abstime)
107 * pointer to an instance of sem_t
138 sem_t s = *sem;
/external/bluetooth/bluedroid/test/suite/support/
H A Dcallbacks.h27 sem_t *semaphore = callbacks_get_semaphore(#callback); \
33 sem_t *semaphore = callbacks_get_semaphore(#callback); \
42 sem_t *semaphore = callbacks_get_semaphore(__func__); \
52 sem_t *callbacks_get_semaphore(const char *name);
H A Dcallbacks.c44 sem_t semaphore;
108 sem_t *callbacks_get_semaphore(const char *name) {
/external/deqp/framework/delibs/dethread/unix/
H A DdeSemaphoreUnix.c32 DE_STATIC_ASSERT(sizeof(deSemaphore) >= sizeof(sem_t*));
36 sem_t* sem = (sem_t*)deMalloc(sizeof(sem_t));
54 sem_t* sem = (sem_t*)semaphore;
62 sem_t* sem = (sem_t*)semaphore;
70 sem_t* sem = (sem_t*)semaphor
[all...]
H A DdeNamedSemaphoreUnix.c36 sem_t* semaphore;
88 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore;
96 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore;
104 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore;
/external/valgrind/main/helgrind/tests/
H A Dtc24_nonzero_sem.c15 static sem_t* my_sem_init(char*, int, unsigned);
16 static int my_sem_destroy(sem_t*);
17 static int my_sem_wait(sem_t*); //static int my_sem_post(sem_t*);
21 sem_t* sem = (sem_t*)semV;
29 sem_t* sem;
49 static sem_t* my_sem_init (char* identity, int pshared, unsigned count)
51 sem_t* s;
79 static int my_sem_destroy ( sem_t*
[all...]
H A Dtc17_sembar.c28 static sem_t* my_sem_init(char*, int, unsigned);
29 static int my_sem_destroy(sem_t*);
30 static int my_sem_wait(sem_t*); static int my_sem_post(sem_t*);
35 sem_t* sem1;
36 sem_t* sem2;
39 sem_t* xxx;
221 static sem_t* my_sem_init (char* identity, int pshared, unsigned count)
223 sem_t* s;
251 static int my_sem_destroy ( sem_t*
[all...]
H A Dtc23_bogus_condwait.c12 sem_t* quit_now;
13 static sem_t* my_sem_init(char*, int, unsigned);
14 static int my_sem_destroy(sem_t*);
15 static int my_sem_wait(sem_t*); static int my_sem_post(sem_t*);
97 static sem_t* my_sem_init (char* identity, int pshared, unsigned count)
99 sem_t* s;
127 static int my_sem_destroy ( sem_t* s )
132 static int my_sem_wait(sem_t* s)
137 static int my_sem_post(sem_t*
[all...]
/external/valgrind/main/none/tests/
H A Dsemlimit.c8 sem_t s[SEM_LIMIT];
/external/valgrind/main/drd/tests/
H A Dannotate_sem.c21 } sem_t; typedef in typeref:struct:__anon32784
23 static sem_t s_sem;
26 static void sem_init(sem_t *p, unsigned value)
33 static void sem_destroy(sem_t *p)
38 static void sem_wait(sem_t *p)
53 static void sem_post(sem_t *p)
H A Dpth_inconsistent_cond_wait.c41 static sem_t* s_sem;
45 static sem_t* create_semaphore(const char* const name)
50 sem_t* p = sem_open(name_and_pid, O_CREAT | O_EXCL, 0600, 0);
57 sem_t* p = malloc(sizeof(*p));
64 static void destroy_semaphore(const char* const name, sem_t* p)
/external/libnfc-nxp/Linux_x86/
H A DphOsalNfc_Common.h64 sem_t *pSemaphore;
65 sem_t handleSem;
73 sem_t msgSem;
/external/qemu/include/qemu/
H A Dthread-posix.h20 sem_t sem;
/external/chromium_org/native_client_sdk/src/libraries/sdk_util/
H A Dthread_pool.h45 sem_t work_sem_;
46 sem_t done_sem_;
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/
H A Dthreading.h86 #define sem_t HANDLE macro
101 } sem_t; typedef in typeref:struct:__anon13070
103 static inline int sem_init(sem_t *sem, int pshared, unsigned int value)
115 static inline int sem_wait(sem_t * sem)
138 static inline int sem_post(sem_t * sem)
153 static inline int sem_destroy(sem_t * sem)
167 #define sem_t semaphore_t macro

Completed in 400 milliseconds

123