lemon/cplex.h
changeset 1207 eba5aa390aca
parent 1092 dceba191c00d
equal deleted inserted replaced
8:476ce9451bb6 9:45713e2c3fd6
    21 
    21 
    22 ///\file
    22 ///\file
    23 ///\brief Header of the LEMON-CPLEX lp solver interface.
    23 ///\brief Header of the LEMON-CPLEX lp solver interface.
    24 
    24 
    25 #include <lemon/lp_base.h>
    25 #include <lemon/lp_base.h>
       
    26 #include <lemon/bits/lock.h>
    26 
    27 
    27 struct cpxenv;
    28 struct cpxenv;
    28 struct cpxlp;
    29 struct cpxlp;
    29 
    30 
    30 namespace lemon {
    31 namespace lemon {
    38   class CplexEnv {
    39   class CplexEnv {
    39     friend class CplexBase;
    40     friend class CplexBase;
    40   private:
    41   private:
    41     cpxenv* _env;
    42     cpxenv* _env;
    42     mutable int* _cnt;
    43     mutable int* _cnt;
    43 
    44     mutable bits::Lock* _cnt_lock;
       
    45 
       
    46     void incCnt();
       
    47     void decCnt();
       
    48     
    44   public:
    49   public:
    45 
    50 
    46     /// \brief This exception is thrown when the license check is not
    51     /// \brief This exception is thrown when the license check is not
    47     /// sufficient
    52     /// sufficient
    48     class LicenseError : public Exception {
    53     class LicenseError : public Exception {