From e4a4869fa4f9107c741295085298bf8abc3f3c93 Mon Sep 17 00:00:00 2001 From: Arnaud Lefebvre <arnaud.lefebvre@student.uclouvain.be> Date: Thu, 14 May 2020 12:14:10 +0200 Subject: [PATCH] Replace fonctions.h --- Code_With_Threads/fonctions.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Code_With_Threads/fonctions.h b/Code_With_Threads/fonctions.h index 85a612d..f70773b 100644 --- a/Code_With_Threads/fonctions.h +++ b/Code_With_Threads/fonctions.h @@ -36,7 +36,6 @@ typedef struct buffer2 { sem_t free; sem_t full; pthread_mutex_t mutex; - bool can_stop; } buffer2; void init_list_t(list_t *my_list); @@ -52,9 +51,9 @@ void clear_list_t(list_t *my_list); list_t *prime_list(uint64_t value); +int count_lines(char *filename); + buffer1 *init_buffer_1(int nthreads); buffer2 *init_buffer_2(int nthreads); -int count_lines(char *filename); - #endif //fonctions_h \ No newline at end of file -- GitLab