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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user