mirror of
https://gitlab.com/klmp200/LO41.git
synced 2024-11-22 08:43:22 +00:00
Corrected a simple but deadly bug #bugcatcher
This commit is contained in:
parent
8bf2b3358d
commit
60265a22f5
@ -42,7 +42,7 @@ int get_number_of_passengers_Elevator(THIS(Elevator)){
|
|||||||
int num;
|
int num;
|
||||||
pthread_mutex_lock(&this->mutex_passenger);
|
pthread_mutex_lock(&this->mutex_passenger);
|
||||||
num = this->passenger_ids->get_size(this->passenger_ids);
|
num = this->passenger_ids->get_size(this->passenger_ids);
|
||||||
pthread_mutex_lock(&this->mutex_passenger);
|
pthread_mutex_unlock(&this->mutex_passenger);
|
||||||
return num;
|
return num;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user