#include <stdint.h>
#include <signal.h>
#include <sys/time.h>
#include <string.h>
#include <pthread.h>
#include <iostream>
#include "hello.h"
#include "ControlThread.h"
#include "labjack.h"

using namespace std;

int main(int argc, char** argv)
{
	sigset_t			signalsToBlock;
	ControlThread		ESP_Profiler;
	Hello 				EnglishThread;
	Hello 				FrenchThread;
	Hello 				GermanThread;

	sigemptyset(&signalsToBlock);
	sigaddset(&signalsToBlock,SIGALRM);
	pthread_sigmask(SIG_BLOCK,&signalsToBlock, NULL);
	ESP_Profiler.Start(NULL);
	//EnglishThread.Start((void*) "hello");
	//FrenchThread.Start((void*) "Bonjour");
	//GermanThread.Start((void*) "Guten Tag");
	ESP_Profiler.Wait();
	cout << "That's All Folks" << endl;
}

