mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +00:00
Do not try to compile the monitor on windows
This commit is contained in:
parent
c8b011913a
commit
e899928928
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
|
||||||
static int listener;
|
static int listener;
|
||||||
static std::mutex sockLock; // guards socket list
|
static std::mutex sockLock; // guards socket list
|
||||||
static std::list<int> sockets;
|
static std::list<int> sockets;
|
||||||
@ -110,3 +112,5 @@ void Monitor::start(void *unused) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // _WIN32
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
|
||||||
#include "CNProtocol.hpp"
|
#include "CNProtocol.hpp"
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
@ -10,3 +12,5 @@ namespace Monitor {
|
|||||||
void tick(CNServer *, time_t);
|
void tick(CNServer *, time_t);
|
||||||
void start(void *);
|
void start(void *);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif // _WIN32
|
||||||
|
@ -104,7 +104,9 @@ int main() {
|
|||||||
TransportManager::init();
|
TransportManager::init();
|
||||||
BuddyManager::init();
|
BuddyManager::init();
|
||||||
GroupManager::init();
|
GroupManager::init();
|
||||||
|
#ifndef _WIN32
|
||||||
Monitor::init();
|
Monitor::init();
|
||||||
|
#endif
|
||||||
Database::open();
|
Database::open();
|
||||||
|
|
||||||
switch (settings::EVENTMODE) {
|
switch (settings::EVENTMODE) {
|
||||||
@ -123,7 +125,9 @@ int main() {
|
|||||||
shardServer = new CNShardServer(settings::SHARDPORT);
|
shardServer = new CNShardServer(settings::SHARDPORT);
|
||||||
|
|
||||||
shardThread = new std::thread(startShard, (CNShardServer*)shardServer);
|
shardThread = new std::thread(startShard, (CNShardServer*)shardServer);
|
||||||
|
#ifndef _WIN32
|
||||||
monitorThread = new std::thread(Monitor::start, nullptr);
|
monitorThread = new std::thread(Monitor::start, nullptr);
|
||||||
|
#endif
|
||||||
|
|
||||||
loginServer.start();
|
loginServer.start();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user