Added a special file locking mechanism to the debug logging which allows testing multi-user to seperate logfiles automatically

This commit is contained in:
Mark Vejvoda
2010-04-13 16:00:19 +00:00
parent 8c438b812d
commit feb61e0598
3 changed files with 75 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
// ==============================================================
// This file is part of Glest Shared Library (www.glest.org)
//
// Copyright (C) 2001-2008 Marti<EFBFBD>o Figueroa
// Copyright (C) 2001-2008 Martio Figueroa
//
// You can redistribute this code and/or modify it under
// the terms of the GNU General Public License as published
@@ -23,9 +23,15 @@ class SystemFlags
{
protected:
static int lockFile;
static string lockfilename;
static std::ofstream fileStream;
public:
SystemFlags();
~SystemFlags();
enum DebugType {
debugSystem,
debugNetwork