Mercurial > public > algo-animator
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/algorithms.h Wed Jun 28 20:10:55 2023 +0100 @@ -0,0 +1,18 @@ +#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