lemon/bits/windows.h
changeset 1177 3c00344f49c9
parent 1092 dceba191c00d
     1.1 --- a/lemon/bits/windows.h	Mon Jul 16 16:21:40 2018 +0200
     1.2 +++ b/lemon/bits/windows.h	Wed Oct 17 19:14:07 2018 +0200
     1.3 @@ -2,7 +2,7 @@
     1.4   *
     1.5   * This file is a part of LEMON, a generic C++ optimization library.
     1.6   *
     1.7 - * Copyright (C) 2003-2009
     1.8 + * Copyright (C) 2003-2013
     1.9   * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.10   * (Egervary Research Group on Combinatorial Optimization, EGRES).
    1.11   *
    1.12 @@ -19,6 +19,7 @@
    1.13  #ifndef LEMON_BITS_WINDOWS_H
    1.14  #define LEMON_BITS_WINDOWS_H
    1.15  
    1.16 +#include <lemon/config.h>
    1.17  #include <string>
    1.18  
    1.19  namespace lemon {
    1.20 @@ -28,6 +29,16 @@
    1.21                           double &cutime, double &cstime);
    1.22      std::string getWinFormattedDate();
    1.23      int getWinRndSeed();
    1.24 +
    1.25 +    class WinLock {
    1.26 +    public:
    1.27 +      WinLock();
    1.28 +      ~WinLock();
    1.29 +      void lock();
    1.30 +      void unlock();\
    1.31 +    private:
    1.32 +      void *_repr;
    1.33 +    };
    1.34    }
    1.35  }
    1.36