|
|
@ -45,8 +45,7 @@ typedef struct ck_barrier_centralized_state ck_barrier_centralized_state_t;
|
|
|
|
#define CK_BARRIER_CENTRALIZED_STATE_INITIALIZER {0}
|
|
|
|
#define CK_BARRIER_CENTRALIZED_STATE_INITIALIZER {0}
|
|
|
|
|
|
|
|
|
|
|
|
void ck_barrier_centralized(ck_barrier_centralized_t *,
|
|
|
|
void ck_barrier_centralized(ck_barrier_centralized_t *,
|
|
|
|
ck_barrier_centralized_state_t *,
|
|
|
|
ck_barrier_centralized_state_t *, unsigned int);
|
|
|
|
unsigned int);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct ck_barrier_combining_group {
|
|
|
|
struct ck_barrier_combining_group {
|
|
|
|
unsigned int k;
|
|
|
|
unsigned int k;
|
|
|
@ -75,8 +74,7 @@ typedef struct ck_barrier_combining ck_barrier_combining_t;
|
|
|
|
void ck_barrier_combining_init(ck_barrier_combining_t *, ck_barrier_combining_group_t *);
|
|
|
|
void ck_barrier_combining_init(ck_barrier_combining_t *, ck_barrier_combining_group_t *);
|
|
|
|
|
|
|
|
|
|
|
|
void ck_barrier_combining_group_init(ck_barrier_combining_t *,
|
|
|
|
void ck_barrier_combining_group_init(ck_barrier_combining_t *,
|
|
|
|
ck_barrier_combining_group_t *,
|
|
|
|
ck_barrier_combining_group_t *, unsigned int);
|
|
|
|
unsigned int);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ck_barrier_combining(ck_barrier_combining_t *,
|
|
|
|
void ck_barrier_combining(ck_barrier_combining_t *,
|
|
|
|
ck_barrier_combining_group_t *,
|
|
|
|
ck_barrier_combining_group_t *,
|
|
|
@ -95,6 +93,7 @@ struct ck_barrier_dissemination {
|
|
|
|
struct ck_barrier_dissemination_flag *flags[2];
|
|
|
|
struct ck_barrier_dissemination_flag *flags[2];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
typedef struct ck_barrier_dissemination ck_barrier_dissemination_t;
|
|
|
|
typedef struct ck_barrier_dissemination ck_barrier_dissemination_t;
|
|
|
|
|
|
|
|
|
|
|
|
struct ck_barrier_dissemination_state {
|
|
|
|
struct ck_barrier_dissemination_state {
|
|
|
|
int parity;
|
|
|
|
int parity;
|
|
|
|
unsigned int sense;
|
|
|
|
unsigned int sense;
|
|
|
@ -103,8 +102,7 @@ struct ck_barrier_dissemination_state {
|
|
|
|
typedef struct ck_barrier_dissemination_state ck_barrier_dissemination_state_t;
|
|
|
|
typedef struct ck_barrier_dissemination_state ck_barrier_dissemination_state_t;
|
|
|
|
|
|
|
|
|
|
|
|
void ck_barrier_dissemination_init(ck_barrier_dissemination_t *,
|
|
|
|
void ck_barrier_dissemination_init(ck_barrier_dissemination_t *,
|
|
|
|
ck_barrier_dissemination_flag_t **,
|
|
|
|
ck_barrier_dissemination_flag_t **, unsigned int);
|
|
|
|
unsigned int);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ck_barrier_dissemination_subscribe(ck_barrier_dissemination_t *,
|
|
|
|
void ck_barrier_dissemination_subscribe(ck_barrier_dissemination_t *,
|
|
|
|
ck_barrier_dissemination_state_t *);
|
|
|
|
ck_barrier_dissemination_state_t *);
|
|
|
|