#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <time.h>
#include <sys/timeb.h>
#include "MessageController.h"
#include "Dispatcher.h"
#include "FileReader.h"
#include "DbusConnection.h"
#include "Globals.h"
#include <stdexcept>
Include dependency graph for MessageController.cpp:
Go to the source code of this file.
Functions | |
long | time_millisec () |
void * | msgcontrollerThread (void *args) |
|
In this function is the thread which is responsible for controlling the flow of time in de visualisation. Every time it gets cpu-time from the scheduler, it increments the currenttime variable according to the elapsed time and the timeflowfactor. It then looks at the queue and sends messages which can be sent. The messages are send to the Dispatcher.
Definition at line 79 of file MessageController.cpp. References MessageController::cond, MessageController::currenttime, MessageController::disp, MessageController::msgcontrollerthread_run, MessageController::msgqueue, MessageController::mutex, Dispatcher::proccessMessageFromMC(), time_millisec(), and MessageController::timeflowfactor. Here is the call graph for this function: ![]() |
|
Definition at line 66 of file MessageController.cpp. Referenced by msgcontrollerThread(). |