1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-18 15:49:28 +00:00

Auront-ont vaincu la préemption ?

This commit is contained in:
Aethor
2018-06-22 00:48:43 +02:00
parent 7b2e3432ea
commit 86dabd455a
4 changed files with 12 additions and 10 deletions

View File

@ -25,7 +25,10 @@ void * runnable_Resident(void * void_this){
printf("Je suis le resident %s et je suis a l'etage %d en direction de l'etage %d\n",
this->name, this->apartment_floor, this->destination);
data->main_building->go_to_floor(data->main_building, this->position, this->destination, passenger);
if(this->position == this->destination)
printf("Résident %s : je reste chez moi\n", this->name);
else
data->main_building->go_to_floor(data->main_building, this->position, this->destination, passenger);
return NULL;
}