Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Intersection.h
00001 #ifndef _INTERSECTION_H_ 00002 #define _INTERSECTION_H_ 00003 00004 #include "mbed.h" 00005 #include "Car.h" 00006 #include "AccCar.h" 00007 00008 #include <queue> 00009 00010 class Road; 00011 class AccCar; 00012 00013 class Intersection { 00014 public: 00015 Road* road1; 00016 Road* road2; 00017 std::queue<AccCar*>crossQ; 00018 Mutex qmutex; 00019 00020 void add_to_q(AccCar* car); 00021 void remove_from_q(); 00022 bool can_cross(AccCar* car); 00023 }; 00024 00025 #endif
Generated on Fri Jul 22 2022 13:26:47 by
1.7.2