Ignore:
Timestamp:
Mar 9, 2017, 10:16:58 PM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
f67dfb
Parents:
c300e2
git-author:
Frederik Heber <heber@…> (02/23/17 14:26:57)
git-committer:
Frederik Heber <heber@…> (03/09/17 22:16:58)
Message:

AsyncOperation now sets a status code to indicate resolver failure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/JobMarket/src/JobMarket/Operations/Operation.hpp

    rc300e2 r8e7a1b  
    3434  Operation(const std::string &_name, Connection &_connection) :
    3535    connection_(_connection),
     36    status(not_started),
    3637    name(_name)
    3738  {}
     
    5657  }
    5758
     59  //!> enumeration of status codes of the operation
     60  enum StatusCodes {
     61    not_started,
     62    running,
     63    error,
     64    success
     65  };
     66
     67  /** Returns the current status of the operation.
     68   *
     69   * \return status code
     70   */
     71  enum StatusCodes getStatus() const {
     72    return status;
     73  }
     74
    5875protected:
    59   /// The Connection to the server.
     76  //!> The Connection to the server.
    6077  Connection &connection_;
    6178
     79  //!> current status of the operation
     80  enum StatusCodes status;
     81
    6282private:
    63   /// Name of this AsyncOperation (required for Registry pattern)
     83  //!> Name of this AsyncOperation (required for Registry pattern)
    6484  std::string name;
    6585};
Note: See TracChangeset for help on using the changeset viewer.