#include "main.h"
#include <unistd.h>
#include <pthread.h>
#include "../common/buffer.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char** argv) |
Variables | |
Buffer* | matrixBufIn = 0 |
The buffer the matrix reads from - created here to avoid sync-problems. More... |
|
Definition at line 45 of file server/main.cpp.
00045 { 00046 FETArgs* FETargs; 00047 FETargs = new FETArgs; 00048 CCTArgs* CCTargs; 00049 CCTargs = new CCTArgs; 00050 /* 00051 MCTArgs* MCTargs; 00052 MCTargs = new MCTArgs; 00053 */ 00054 00055 matrixBufIn = new Buffer (); 00056 00057 LoadAllPlugins (); 00058 00059 //MCTargs->argc = 00060 CCTargs->argc = FETargs->argc = argc; 00061 //MCTargs->argv = 00062 CCTargs->argv = FETargs->argv = argv; 00063 00064 pthread_t frontEndThread; 00065 pthread_t clientControlThread; 00066 pthread_t matrixThread; 00067 // pthread_t coreThread; 00068 00069 pthread_create (&frontEndThread, NULL, FrontEndThread, FETargs); 00070 pthread_create (&matrixThread, NULL, MatrixThread, NULL); 00071 pthread_create (&clientControlThread, NULL, ClientControlThread, CCTargs); 00072 // pthread_create (&coreThread, NULL, (void*) CoreThread, NULL); 00073 00074 pthread_join (frontEndThread, NULL); 00075 pthread_join (matrixThread, NULL); 00076 pthread_join (clientControlThread, NULL); 00077 // pthread_join (coreThread, NULL); 00078 00079 return 0; 00080 }
|
The buffer the matrix reads from - created here to avoid sync-problems.
Definition at line 43 of file server/main.cpp.