view src/algorithms.h @ 29:dae463bbf5ca

implementing multi-thread and refactoring
author Dennis C. M. <dennis@denniscm.com>
date Wed, 28 Jun 2023 20:10:55 +0100
parents
children f945bcc3571f
line wrap: on
line source

#ifndef ALGORITHMS_H
#define ALGORITHMS_H

#include "utils.h"


struct AlgoArgs {
	struct Element *arr;
	int arr_size;
	int *comparisons;
	useconds_t *delay;
	bool pause;
};

void *bubble_sort(void *arguments);


#endif // ALGORITHMS_H