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
29 LogFile::Instance()->WriteLog(LogFile::LOGLEVEL_INFO,"FMS startup v"FMS_VERSION);
\r
32 StartThreads(threads);
\r
35 //ZThread::Thread commandthread(new CommandThread());
\r
36 PThread::Thread commandthread(new CommandThread());
\r
37 commandthread.Join();
\r
40 ShutdownThreads(threads);
\r
44 LogFile::Instance()->WriteLog(LogFile::LOGLEVEL_INFO,"FMS shutdown");
\r
45 LogFile::Instance()->WriteNewLine();
\r