comparison 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
comparison
equal deleted inserted replaced
28:99592fae8ea1 29:dae463bbf5ca
1 #ifndef ALGORITHMS_H
2 #define ALGORITHMS_H
3
4 #include "utils.h"
5
6
7 struct AlgoArgs {
8 struct Element *arr;
9 int arr_size;
10 int *comparisons;
11 useconds_t *delay;
12 bool pause;
13 };
14
15 void *bubble_sort(void *arguments);
16
17
18 #endif // ALGORITHMS_H