Skip to content
Snippets Groups Projects
Commit 27edef78 authored by remi.greub's avatar remi.greub
Browse files

petite traduction de plus

parent e63ef07b
Branches
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
#define DEPOT 0
#define USLEEP 0
#define USLEEP 1
sem_t *sem_FreeSlot;
sem_t *sem_BikeFree;
......@@ -40,7 +40,7 @@ struct Truck{
int nbCivilians;
};
struct cities{
struct city{
int nb_bikesParked;
int nb_P_waiting;
};
......@@ -50,7 +50,7 @@ int rand_D();
//void civilians_PassiveMode(void *arg);
void *trucks(void *arg);
void *civilians(void *arg);
struct cities *cities; //this table is the size of the number of cities, each cities has NParkinglot and each numbers represents a free parkinglot
struct city *cities; //this table is the size of the number of cities, each cities has NParkinglot and each numbers represents a free parkinglot
int main(int argc, char **argv){
......@@ -68,7 +68,7 @@ int main(int argc, char **argv){
pthread_t *threadCivilians = malloc(sizeof(pthread_t)*nbCivilians);
pthread_t *threadTruck = malloc(sizeof(pthread_t));
cities = calloc(nbcities, sizeof(struct cities));
cities = calloc(nbcities, sizeof(struct city));
struct civilian *Civilians = calloc(nbCivilians, sizeof(struct civilian));
struct Truck *truck = malloc(sizeof(struct Truck));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment