1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2026-05-13 20:48:09 +00:00

Condition de fin des elevators

This commit is contained in:
2018-06-22 01:58:11 +02:00
parent bd6920d5e9
commit f6425b271e
7 changed files with 37 additions and 5 deletions
+2 -1
View File
@@ -135,7 +135,8 @@ void *runnable_Elevator(void * void_this){
AGENT_OPTIONS
printf("Initialisation de l'ascenseur %s\n", this->name);
for (;;){
while (data->is_active_passengers_left(data)){
// for (;;){
usleep(250000);
if(this->target_floor == this->get_floor(this)){