Searched refs:thread_sem (Results 1 - 18 of 18) sorted by relevance

/barrelfish-master/lib/posixcompat/
H A Dpthreads_private.h16 struct thread_sem mutex;
17 struct thread_sem barrier;
18 struct thread_sem reset;
H A Dsemaphore.c42 thread_sem_init(&sem->thread_sem, value);
64 thread_sem_wait(&sem->thread_sem);
83 if(thread_sem_trywait(&sem->thread_sem)) {
119 thread_sem_post(&sem->thread_sem);
/barrelfish-master/include/barrelfish/
H A Dthread_sync.h56 struct thread_sem { struct
75 struct thread_sem mutex;
76 struct thread_sem barrier;
77 struct thread_sem reset;
85 { 0, 0, (struct thread_sem *) NULL, \
86 (struct thread_sem *) NULL, (struct thread_sem *) NULL }
H A Dthreads.h65 void thread_sem_init(struct thread_sem *sem, unsigned int value);
66 void thread_sem_wait(struct thread_sem *sem);
67 bool thread_sem_trywait(struct thread_sem *sem);
68 void thread_sem_post(struct thread_sem *sem);
/barrelfish-master/include/
H A Dsemaphore.h20 struct thread_sem thread_sem; member in struct:posix_semaphore
/barrelfish-master/include/lwip2/arch/
H A Dsys_arch.h28 typedef struct thread_sem *sys_sem_t;
/barrelfish-master/include/lwip/arch/
H A Dsys_arch.h22 typedef struct thread_sem *sys_sem_t;
/barrelfish-master/usr/examples/xmpl-thread/
H A Dthread.c29 struct thread_sem *sem;
69 struct thread_sem sem = THREAD_SEM_INITIALIZER;
/barrelfish-master/usr/bench/scheduling/
H A Dphases.c31 static struct thread_sem init_sem = THREAD_SEM_INITIALIZER;
H A Dphases_scale.c32 static struct thread_sem init_sem = THREAD_SEM_INITIALIZER;
/barrelfish-master/lib/barrelfish/
H A Dthread_sync.c337 void thread_sem_init(struct thread_sem *sem, unsigned int value)
346 void thread_sem_wait(struct thread_sem *sem)
370 bool thread_sem_trywait(struct thread_sem *sem)
393 void thread_sem_post(struct thread_sem *sem)
/barrelfish-master/lib/phoenix/
H A Dtpool.c36 struct thread_sem sem_run;
38 struct thread_sem *sem_all_workers_done;
51 struct thread_sem sem_all_workers_done;
/barrelfish-master/usr/tests/octopus/
H A Dd2pubsub.c26 static struct thread_sem ts;
/barrelfish-master/lib/lwip/src/
H A Dsys_arch.c120 struct thread_sem *newsem = malloc(sizeof(struct thread_sem));
/barrelfish-master/lib/lwip2/src/
H A Dsys_arch.c130 struct thread_sem *newsem = malloc(sizeof(struct thread_sem));
/barrelfish-master/lib/bomp/backends/
H A Dbomp_shared.c143 static struct thread_sem init_sem = THREAD_SEM_INITIALIZER
/barrelfish-master/lib/devif/backends/net/mlx4/drivers/net/mlx4/
H A Dmlx4.h608 struct thread_sem poll_sem;
609 struct thread_sem event_sem;
/barrelfish-master/usr/acpi/
H A Dacpica_osglue.c917 struct thread_sem *sem = malloc(sizeof(struct thread_sem));

Completed in 138 milliseconds