Rev 328 | Blame | Last modification | View Log | RSS feed
#include <cstdio>#include <unistd.h>using namespace std;#include <boost/thread/thread.hpp>#include <boost/bind.hpp>#include "controller.h"#include "elevator.h"int main (int argc, char *argv[]){int i = 0;//Elevator e1 (10);Controller c (10, 5);vector<Elevator> elevators (5, Elevator (10));elevators[1].thread_start ();//elevators[2].thread_start ();// do some useful stuff heresleep (2);elevators[1].push_button (4);//elevators[2].push_button (8);//elevators[2].push_button (2);sleep (24);elevators[1].thread_exit ();//elevators[2].thread_exit ();return 0;}