39 lines
769 B
C
39 lines
769 B
C
|
#include <unistd.h>
|
||
|
#include <stdio.h>
|
||
|
#include <pthread.h>
|
||
|
#include "displayManager.h"
|
||
|
#include "iDisplay.h"
|
||
|
#include "iAcquisitionManager.h"
|
||
|
#include "iMessageAdder.h"
|
||
|
#include "msg.h"
|
||
|
#include "multitaskingAccumulator.h"
|
||
|
#include "debug.h"
|
||
|
|
||
|
// DisplayManager thread.
|
||
|
pthread_t displayThread;
|
||
|
|
||
|
/**
|
||
|
* Display manager entry point.
|
||
|
* */
|
||
|
static void *display( void *parameters );
|
||
|
|
||
|
|
||
|
void displayManagerInit(void){
|
||
|
//TODO
|
||
|
}
|
||
|
|
||
|
void displayManagerJoin(void){
|
||
|
//TODO
|
||
|
}
|
||
|
|
||
|
static void *display( void *parameters )
|
||
|
{
|
||
|
D(printf("[displayManager]Thread created for display with id %d\n", gettid()));
|
||
|
unsigned int diffCount = 0;
|
||
|
while(diffCount < DISPLAY_LOOP_LIMIT){
|
||
|
sleep(DISPLAY_SLEEP_TIME);
|
||
|
//TODO
|
||
|
}
|
||
|
printf("[displayManager] %d termination\n", gettid());
|
||
|
//TODO
|
||
|
}
|