#include #include #include #include "displayManager.h" #include "iDisplay.h" #include "iAcquisitionManager.h" #include "iMessageAdder.h" #include "msg.h" #include "mySoftware.h" #include "debug.h" // DisplayManager thread. pthread_t displayThread; /** * Display manager entry point. */ static void *display( void *parameters ); void displayManagerInit(void){ pthread_create(&displayThread, NULL, display, NULL); } void displayManagerJoin(void){ pthread_join(displayThread, NULL); } 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] %ld termination\n", gettid()); pthread_exit(NULL); }