23 lines
553 B
C
23 lines
553 B
C
#ifndef MAIN_H
|
|
#define MAIN_H
|
|
#include <ncurses.h>
|
|
void * compute_prime (void *args); //thread primaire
|
|
void * printArrayPcps(void*** cps); //Threa secondaire
|
|
void * pgm(void **param);
|
|
|
|
typedef struct{
|
|
int mutex;
|
|
WINDOW * win;
|
|
} paramNcurseThread;
|
|
typedef struct { //struct random pour essayer
|
|
int max_prime;
|
|
int ith_prime;
|
|
int nbFinTheadLoc; //Var local pour voir ou en était le nb de thread
|
|
int *nbFinTheadP; //Pointeur pour voir l'interation de mem entre thread
|
|
paramNcurseThread * pnt;
|
|
} compute_prime_struct;
|
|
|
|
|
|
|
|
#endif
|