This question is for the TODOs on the screen shot, this is multithreading in C++ using visual studio 2019
= 0) && (num carsInStation; 79 void Station::setCarsInStation(int num) 81 82 this->carsInStation = num; Show output from: General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi carsInStation; Header Fles -void Station::setCarsInStation(int num) Source Fics this->carsInStation = num; D Pump.cpp the Station.cpp - std:: mutex* Station::getstationMutex(void) return this->stationMutex; std::condition variable* Station::getstationCondition(void) return this->stationCondition; 94 - void station::setStationMutex(std:: mutex* ) this->stationMutex - m; void Station::setStationCondition(std::condition_variable* cv) this->stationCondition = cv; 191 102 103 ) Show output from General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi C De File Edit 0. - Vir Search the web... Project Build Dubug Test Analyse 2 - - Debug - Wi-32 P 2 Tool . Extensions Window Help Local Window Dubugger - Search Visual Studio (Ctrl+C - Ramation System - - B - 0 Live Share X ? U ATE 12. Station Pumper m ainan Oran Solution Explorer 4 X 4 x Seation.cpp atlusyum (Global Scope Server Eaplorer Tolbos // file: // Job: Station.h holds the station class Search Solution Luptor PL Solution Reserving Reservation System References Ermal Dupun Header Files DA Carch Pumph D D Sestion. Recure Files 6 // mult protection -#ifndef STATION #define _STATION_ D o // include needed files - Hinclude
#include Car.cpp main.cpp Pump.cpp Suation.cpp Ston + 13 e create // forward declaracions class Pumpi 16 ut // class Station -class Station e wild @setta Statin private: // Variables unsigned int freeMask; Pump pumps; int pumps InStation; int carsInStation; std:: mutex" stationMutex; std::condition variable* stationCondition; // used for seeing it a pump is in use or not // an array of pumps // nunher of pumps in the station // number of cars that will visit the station // mutex for protecting memory in the station // cv used for scheduling in the station public: //constructor and destructor Station(void); Station(void); 00% - No issues found Show output from: General Souti. Tarn Cluss... Er List Output Ready - Colt Chi + Add to Source Central ! C De File Edit 0. - Vir Search the web... Project Build Dubug Test Analyse 2 - - Debug - Wi-32 P Tool . Extensions Window Help Local Window Dubugger - Search Visual Studio (Ctrl+C - Ramation System - - BL - Live Share X ? A F 19. Solution Dyplore UX Server Eaplorer Tolbos Station 4 x Seation.cpp Pumper m ainan Oran ervation System - (Global Scope) std::condition_variable* stationCondition; // cv used for scheduling in the station public: //constructor and destructor Station(void); Station(void); Search Soliton up or PL Solution Reserving Reservation Systen References Ermal Dupun 1 Header Fles DA Carch Pumph D D Sestion.h Recure Files accessors int getPumpillCount(int num); int getcarsInStation(void); std::mtex* getstation Mutex(void); std::condition_variable" getStationCondition(void); D o Car.cpp + Pump.cpp Suation.cpp Ston e create // mutators vuid selCarsInSlalion(int num); void setStationMutex(std:: mutex* m); void setStationCondition(std::condition variable* cv); ut fillup 17 Name: // // Arguments: e wild @setta none // Notes: This function will be the reservation system. It will fill up the gas tanks of cars and control thier access // Returns: int - (1) it the fill up was successfull and (-1) if it failed int fillup ; // Name: createPumps numOfPumps - rumber of pumps for that station // Arguments: No issues found 100% . Show output from: General Souti. Tarn Cluss... Er List Output Ready - Colt Chi + Add to Source Central ! C ng File Edit 0. - Vin Search the web... Project Build Debug Test Analyze 2 - - Debug - Wi-32 P Tools . Eternice Window Help Local Window Dubugger - Search Visual Studio (Ctrl+C - a - rvationSyutum - BL - Live Share X ? A F 19. Station - x Seation.cpp Pumper m ainan Orrin Solution Dyplore UX (Global Sceps) Server Eaplorer Tolbos //accessors int getPumpFillCount(int num); int getCarsInStation (void); std:: mutex* getstationMutex(void); std::condition variable* getStationcondition(void); Search Soliton up or PL Solution Reserving Reservation Systen References Ermal Dupun 1 Header Fles DA Carch Pumph D D Sestion.h Recure Files // mutators void setCarsInStation(int num); void setStationMutex(std::mutex* m); void setStation Condition(std::condition_variable* cv); D o Car.cpp main.co Pump.cpp Suation.cpp Ston + // Name: fillup e create // Arguments: none ut // Notes: This function will be the reservation system. It will fill up the gas tanks of cars and control thier access // Returns: int - (1) if the fill up was successfull and (-1) if it failed e wild @setta int fillUp(); // Name: CreatePumps // Arguments: numor Pumps - number of pumps for that station // Notes: This function will allocate memory for the pumps in the station // Returns: void void createPumps(int numrOfPumps); No issues found 00% . Show output from: General Souti. Tarn Cluss... Er List Output Ready - Colt Chi + Add to Source Central ! = 0) && (num carsInStation; 79 void Station::setCarsInStation(int num) 81 82 this->carsInStation = num; Show output from: General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi carsInStation; Header Fles -void Station::setCarsInStation(int num) Source Fics this->carsInStation = num; D Pump.cpp the Station.cpp - std:: mutex* Station::getstationMutex(void) return this->stationMutex; std::condition variable* Station::getstationCondition(void) return this->stationCondition; 94 - void station::setStationMutex(std:: mutex* ) this->stationMutex - m; void Station::setStationCondition(std::condition_variable* cv) this->stationCondition = cv; 191 102 103 ) Show output from General Er List Output Ready Sout. Team. + Add to Source Central Cliss.. ! - Colt Chi C De File Edit 0. - Vir Search the web... Project Build Dubug Test Analyse 2 - - Debug - Wi-32 P 2 Tool . Extensions Window Help Local Window Dubugger - Search Visual Studio (Ctrl+C - Ramation System - - B - 0 Live Share X ? U ATE 12. Station Pumper m ainan Oran Solution Explorer 4 X 4 x Seation.cpp atlusyum (Global Scope Server Eaplorer Tolbos // file: // Job: Station.h holds the station class Search Solution Luptor PL Solution Reserving Reservation System References Ermal Dupun Header Files DA Carch Pumph D D Sestion. Recure Files 6 // mult protection -#ifndef STATION #define _STATION_ D o // include needed files - Hinclude #include Car.cpp main.cpp Pump.cpp Suation.cpp Ston + 13 e create // forward declaracions class Pumpi 16 ut // class Station -class Station e wild @setta Statin private: // Variables unsigned int freeMask; Pump pumps; int pumps InStation; int carsInStation; std:: mutex" stationMutex; std::condition variable* stationCondition; // used for seeing it a pump is in use or not // an array of pumps // nunher of pumps in the station // number of cars that will visit the station // mutex for protecting memory in the station // cv used for scheduling in the station public: //constructor and destructor Station(void); Station(void); 00% - No issues found Show output from: General Souti. Tarn Cluss... Er List Output Ready - Colt Chi + Add to Source Central ! C De File Edit 0. - Vir Search the web... Project Build Dubug Test Analyse 2 - - Debug - Wi-32 P Tool . Extensions Window Help Local Window Dubugger - Search Visual Studio (Ctrl+C - Ramation System - - BL - Live Share X ? A F 19. Solution Dyplore UX Server Eaplorer Tolbos Station 4 x Seation.cpp Pumper m ainan Oran ervation System - (Global Scope) std::condition_variable* stationCondition; // cv used for scheduling in the station public: //constructor and destructor Station(void); Station(void); Search Soliton up or PL Solution Reserving Reservation Systen References Ermal Dupun 1 Header Fles DA Carch Pumph D D Sestion.h Recure Files accessors int getPumpillCount(int num); int getcarsInStation(void); std::mtex* getstation Mutex(void); std::condition_variable" getStationCondition(void); D o Car.cpp + Pump.cpp Suation.cpp Ston e create // mutators vuid selCarsInSlalion(int num); void setStationMutex(std:: mutex* m); void setStationCondition(std::condition variable* cv); ut fillup 17 Name: // // Arguments: e wild @setta none // Notes: This function will be the reservation system. It will fill up the gas tanks of cars and control thier access // Returns: int - (1) it the fill up was successfull and (-1) if it failed int fillup ; // Name: createPumps numOfPumps - rumber of pumps for that station // Arguments: No issues found 100% . Show output from: General Souti. Tarn Cluss... Er List Output Ready - Colt Chi + Add to Source Central ! C ng File Edit 0. - Vin Search the web... Project Build Debug Test Analyze 2 - - Debug - Wi-32 P Tools . Eternice Window Help Local Window Dubugger - Search Visual Studio (Ctrl+C - a - rvationSyutum - BL - Live Share X ? A F 19. Station - x Seation.cpp Pumper m ainan Orrin Solution Dyplore UX (Global Sceps) Server Eaplorer Tolbos //accessors int getPumpFillCount(int num); int getCarsInStation (void); std:: mutex* getstationMutex(void); std::condition variable* getStationcondition(void); Search Soliton up or PL Solution Reserving Reservation Systen References Ermal Dupun 1 Header Fles DA Carch Pumph D D Sestion.h Recure Files // mutators void setCarsInStation(int num); void setStationMutex(std::mutex* m); void setStation Condition(std::condition_variable* cv); D o Car.cpp main.co Pump.cpp Suation.cpp Ston + // Name: fillup e create // Arguments: none ut // Notes: This function will be the reservation system. It will fill up the gas tanks of cars and control thier access // Returns: int - (1) if the fill up was successfull and (-1) if it failed e wild @setta int fillUp(); // Name: CreatePumps // Arguments: numor Pumps - number of pumps for that station // Notes: This function will allocate memory for the pumps in the station // Returns: void void createPumps(int numrOfPumps); No issues found 00% . Show output from: General Souti. Tarn Cluss... Er List Output Ready - Colt Chi + Add to Source Central