diff options
Diffstat (limited to 'barriersend.c')
-rw-r--r-- | barriersend.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/barriersend.c b/barriersend.c deleted file mode 100644 index a947357..0000000 --- a/barriersend.c +++ /dev/null @@ -1,16 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include "common.h" - - -void -barriersend(struct barrier_group *group, struct global_data *global, void (*action)(struct algorithm *, struct global_data *)) -{ - size_t index; - global->action = action; - if (group->nthreads) - barrierwait(&group->barrier); - for (index = 0; index < global->nalgorithms; index += group->nthreads + 1U) - (*action)(&global->algorithms[index], global); - if (group->nthreads) - barrierwait(&group->barrier); -} |