diff options
| author | Mattias Andrée <maandree@kth.se> | 2024-08-28 16:42:05 +0200 | 
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2024-08-28 16:42:05 +0200 | 
| commit | a24071ae913b223487df78859c8d830f9e69f580 (patch) | |
| tree | e2ec712cc29461c82cfdd477e8b1ba961b50018d /killbarriergroup.c | |
| parent | First commit (diff) | |
| download | anysum-a24071ae913b223487df78859c8d830f9e69f580.tar.gz anysum-a24071ae913b223487df78859c8d830f9e69f580.tar.bz2 anysum-a24071ae913b223487df78859c8d830f9e69f580.tar.xz | |
Second commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'killbarriergroup.c')
| -rw-r--r-- | killbarriergroup.c | 29 | 
1 files changed, 0 insertions, 29 deletions
| diff --git a/killbarriergroup.c b/killbarriergroup.c deleted file mode 100644 index f83317e..0000000 --- a/killbarriergroup.c +++ /dev/null @@ -1,29 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include "common.h" - - -void -killbarriergroup(struct barrier_group *group, struct global_data *global) -{ -#ifndef SINGLE_THREADED -	size_t i; - -	if (!group->nthreads) -		return; - -	global->action = NULL; -	for (i = 0; i < group->nthreads; i++) -		group->threads[i].global = global; -	barrierwait(&group->barrier); - -	for (i = 0; i < group->nthreads; i++) -		if ((errno = pthread_join(group->threads[i].thread, NULL))) -			weprintf("pthread_join:"); -	pthread_barrier_destroy(&group->barrier); - -	free(group->threads); -#else -	(void) group; -	(void) global; -#endif -} | 
