From 45a959d202955773e3a77237853a6b2b4c534e68 Mon Sep 17 00:00:00 2001 From: BogdanCiocea <bogdanandreiciocea@gmail.com> Date: Sat, 25 Nov 2023 10:10:10 +0200 Subject: [PATCH] hopefully this will be it for coding style --- src/parallel.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/parallel.c b/src/parallel.c index 983b22c..2ec7a5c 100644 --- a/src/parallel.c +++ b/src/parallel.c @@ -5,6 +5,7 @@ #include <unistd.h> #include <sys/types.h> #include <time.h> +#include <pthread.h> #include "os_graph.h" #include "os_threadpool.h" @@ -17,10 +18,6 @@ static int sum; static os_graph_t *graph; static os_threadpool_t *tp; /* TODO: Define graph synchronization mechanisms. */ -#include <pthread.h> - -//static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; - /* TODO: Define graph task argument. */ static void process_node(unsigned int idx) -- GitLab