Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

src/MessageController.cpp File Reference

#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)


Function Documentation

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.

Parameters:
args The arguments needed for the context of the tread.

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:

long time_millisec  ) 
 

Definition at line 66 of file MessageController.cpp.

Referenced by msgcontrollerThread().


Generated on Mon Jun 19 10:22:10 2006 for TraplasVisualisation by  doxygen 1.4.4