mirror of
https://gitlab.com/klmp200/LO41.git
synced 2026-10-22 18:29:36 +00:00
Auront-ont vaincu la préemption ?
This commit is contained in:
1 parent
7b2e3432ea
commit
86dabd455a
4 files changed
+12
-10
No files matched your search
+4
-1
@@ -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