1 #include "../include/global.h"
\r
2 #include "../include/commandthread.h"
\r
14 xmem_disable_print();
\r
17 std::vector<PThread::Thread *> threads;
\r
22 SetupDefaultOptions();
\r
28 LogFile::Instance()->WriteLog(LogFile::LOGLEVEL_INFO,"FMS startup v"FMS_VERSION);
\r
31 StartThreads(threads);
\r
34 //ZThread::Thread commandthread(new CommandThread());
\r
35 PThread::Thread commandthread(new CommandThread());
\r
36 commandthread.Join();
\r
39 ShutdownThreads(threads);
\r
43 LogFile::Instance()->WriteLog(LogFile::LOGLEVEL_INFO,"FMS shutdown");
\r
44 LogFile::Instance()->WriteNewLine();
\r