Changeset View
Changeset View
Standalone View
Standalone View
source/network/NetServer.h
Show First 20 Lines • Show All 362 Lines • ▼ Show 20 Lines | #if CONFIG2_MINIUPNPC | ||||
pthread_t m_UPnPThread; | pthread_t m_UPnPThread; | ||||
#endif | #endif | ||||
static void* RunThread(void* data); | static void* RunThread(void* data); | ||||
void Run(); | void Run(); | ||||
bool RunStep(); | bool RunStep(); | ||||
pthread_t m_WorkerThread; | pthread_t m_WorkerThread; | ||||
CMutex m_WorkerMutex; | std::mutex m_WorkerMutex; | ||||
// protected by m_WorkerMutex | // protected by m_WorkerMutex | ||||
bool m_Shutdown; | bool m_Shutdown; | ||||
// Queues for messages sent by the game thread (protected by m_WorkerMutex): | // Queues for messages sent by the game thread (protected by m_WorkerMutex): | ||||
std::vector<bool> m_StartGameQueue; | std::vector<bool> m_StartGameQueue; | ||||
std::vector<std::string> m_GameAttributesQueue; | std::vector<std::string> m_GameAttributesQueue; | ||||
std::vector<std::pair<CStr, CStr>> m_LobbyAuthQueue; | std::vector<std::pair<CStr, CStr>> m_LobbyAuthQueue; | ||||
std::vector<u32> m_TurnLengthQueue; | std::vector<u32> m_TurnLengthQueue; | ||||
}; | }; | ||||
/// Global network server for the standard game | /// Global network server for the standard game | ||||
extern CNetServer *g_NetServer; | extern CNetServer *g_NetServer; | ||||
#endif // NETSERVER_H | #endif // NETSERVER_H |
Wildfire Games · Phabricator