Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

main.cpp File Reference

#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

BuffermatrixBufIn = 0
 The buffer the matrix reads from - created here to avoid sync-problems. More...


Function Documentation

int main ( int argc,
char ** argv)

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 }

Variable Documentation

Buffer * matrixBufIn = 0

The buffer the matrix reads from - created here to avoid sync-problems.

Author(s):
Marc Haisenko , Alexander Feder
Date:
310100

Definition at line 43 of file server/main.cpp.


Generated at Sat May 13 13:50:19 2000 for 3Dsia by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000