Car.h" #include "Station.h" #include using namespace std; extern void te
Please help with the TODO functions
#include "Car.h"
#include "Station.h"
#include <thread>
using namespace std;
extern void testACar(void*);
Car::Car(void)
{
fillCount = 0;
tryCount = 0;
thread = nullptr;
stationToUse = nullptr;
numberWaitingInLine = nullptr;
}
void Car::startCar(void testACar(Car* car))
{
///////////////////////////////////////////////////////////////////////////
// TODO: Start the thread that will be used for the car
//(these will be joinable threads)
///////////////////////////////////////////////////////////////////////////
}
void Car::waitForCarToStop(void)
{
///////////////////////////////////////////////////////////////////////////
// TODO: stop and clean up the car threads
///////////////////////////////////////////////////////////////////////////
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps