diff --git a/Code_With_Threads/fonctions.h b/Code_With_Threads/fonctions.h index 85a612d9f035399126e0dc41e6a8dfb4a47d855d..f70773b78d072f758b5a6ddf6969a0335ce05120 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