mirror of
				https://gitlab.com/klmp200/LO41.git
				synced 2025-10-31 01:03:05 +00:00 
			
		
		
		
	~~
This commit is contained in:
		| @@ -166,7 +166,8 @@ void go_to_floor_Building(THIS(Building), int origin, int destination, Passenger | ||||
| 	if (origin < 0 || origin >= FLOORS) {CRASH("You are trying to start from a non existing floor\n");} | ||||
| 	if (destination < 0 || destination >= FLOORS) {CRASH("You are trying to reach a non existing floor\n");} | ||||
|  | ||||
| 	this->waiting_passengers->insert_tail(this->waiting_passengers, (void*) &passenger, sizeof(passenger)); | ||||
| 	//if(this->waiting_passengers->compare(this->waiting_passengers, (void*) &passenger, passenger.compare)) | ||||
| 	this->waiting_passengers->insert_tail(this->waiting_passengers, (void*) &passenger, sizeof(passenger));//todo : check if inside list | ||||
| 	pthread_cond_wait(this->condition_floors[origin], this->mutex_cond_get_inside_elevator); | ||||
| 	elevator_number = this->get_inside_elevator(this, origin, passenger); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user