mirror of
				https://gitlab.com/klmp200/LO41.git
				synced 2025-10-31 01:03:05 +00:00 
			
		
		
		
	Normalement c'est réglé, enfin
This commit is contained in:
		| @@ -23,7 +23,11 @@ void * runnable_Visitor(void * void_this){ | ||||
|  | ||||
| 	printf("Visiteur %s : Je souhaite rendre visite a %s\n", this->name, this->contact_name); | ||||
| 	printf("Visiteur %s : J'apelle à l'interphone\nVisiteur %s : J'apprends que %s habite à l'étage %d\n", this->name, this->name, this->contact_name, (this->destination = data->use_call_box(data, this->contact_name))); | ||||
| 	data->main_building->go_to_floor(data->main_building, this->position, this->destination, passenger); | ||||
| 	if (this->destination == this->position) | ||||
| 		printf("Visiteur %s : pas besoin de prendre l'ascenseur pour cet étage, je vais y aller à pied\n", this->name); | ||||
| 	else | ||||
| 		data->main_building->go_to_floor(data->main_building, this->position, this->destination, passenger); | ||||
|  | ||||
| 	data->decrement_active_passengers(data); | ||||
| 	data->unregister_thread(data, this->thread_number); | ||||
| 	return NULL; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user