PLASMA
Parallel Linear Algebra Software for Multicore Architectures
plasma_barrier.h
1
10#ifndef PLASMA_BARRIER_H
11#define PLASMA_BARRIER_H
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/******************************************************************************/
18typedef struct {
19 int count;
20 volatile int passed;
21} plasma_barrier_t;
22
23/******************************************************************************/
24void plasma_barrier_init(plasma_barrier_t *barrier);
25void plasma_barrier_wait(plasma_barrier_t *barrier, int size);
26
27#ifdef __cplusplus
28} // extern "C"
29#endif
30
31#endif // PLASMA_BARRIER_H