Changeset 083490 for src


Ignore:
Timestamp:
May 4, 2012, 2:19:07 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
2445fb
Parents:
ef2767
git-author:
Frederik Heber <heber@…> (11/27/11 19:03:10)
git-committer:
Frederik Heber <heber@…> (05/04/12 14:19:07)
Message:

Renamed default handle_..() functions of FragmentSchedulder and ...Worker.

  • new names resemble in what context they appear (i.e. at the end of what operation they are called).
Location:
src/Fragmentation/Automation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Automation/FragmentScheduler.cpp

    ref2767 r083490  
    7373      LOG(1, "INFO: Sending job #" << job.getId() << ".");
    7474      conn->async_write(job,
    75         boost::bind(&FragmentScheduler::handle_write, this,
     75        boost::bind(&FragmentScheduler::handle_SendJob, this,
    7676        boost::asio::placeholders::error, conn));
    7777
     
    8585      // send the static NoJob
    8686      conn->async_write(NoJob,
    87         boost::bind(&FragmentScheduler::handle_write, this,
     87        boost::bind(&FragmentScheduler::handle_SendJob, this,
    8888        boost::asio::placeholders::error, conn));
    8989
     
    102102}
    103103
    104 /// Handle completion of a write operation.
    105 void FragmentScheduler::handle_write(const boost::system::error_code& e, connection_ptr conn)
     104/// Callback function when job has been sent.
     105void FragmentScheduler::handle_SendJob(const boost::system::error_code& e, connection_ptr conn)
    106106{
    107107    Info info(__FUNCTION__);
     
    110110    LOG(1, "INFO: Receiving result for a job ...");
    111111    conn->async_read(result,
    112       boost::bind(&FragmentScheduler::handle_read, this,
     112      boost::bind(&FragmentScheduler::handle_ReceiveResult, this,
    113113      boost::asio::placeholders::error, conn));
    114114}
    115115
    116 /// Handle completion of a read operation.
    117 void FragmentScheduler::handle_read(const boost::system::error_code& e, connection_ptr conn)
     116/// Callback function when result has been received.
     117void FragmentScheduler::handle_ReceiveResult(const boost::system::error_code& e, connection_ptr conn)
    118118{
    119119    Info info(__FUNCTION__);
  • src/Fragmentation/Automation/FragmentScheduler.hpp

    ref2767 r083490  
    3535  void handle_accept(const boost::system::error_code& e, connection_ptr conn);
    3636
    37   /// Handle completion of a write operation.
    38   void handle_write(const boost::system::error_code& e, connection_ptr conn);
     37  /// Callback function when job has been sent.
     38  void handle_SendJob(const boost::system::error_code& e, connection_ptr conn);
    3939
    40   /// Handle completion of a read operation.
    41   void handle_read(const boost::system::error_code& e, connection_ptr conn);
     40  /// Callback function when result has been received.
     41  void handle_ReceiveResult(const boost::system::error_code& e, connection_ptr conn);
    4242
    4343private:
  • src/Fragmentation/Automation/FragmentWorker.cpp

    ref2767 r083490  
    7575    LOG(1, "INFO: Receiving a job ...");
    7676    connection_.async_read(job,
    77       boost::bind(&FragmentWorker::handle_read, this,
     77      boost::bind(&FragmentWorker::handle_ReceiveJob, this,
    7878      boost::asio::placeholders::error));
    7979  } else if (endpoint_iterator != boost::asio::ip::tcp::resolver::iterator()) {
     
    9393}
    9494
    95 /// Handle completion of a read operation.
    96 void FragmentWorker::handle_read(const boost::system::error_code& e)
     95/// Callback function when job has been received.
     96void FragmentWorker::handle_ReceiveJob(const boost::system::error_code& e)
    9797{
    9898  Info info(__FUNCTION__);
     
    112112      LOG(1, "INFO: Sending result for job #" << job.getId() << " ...");
    113113      connection_.async_write(result,
    114         boost::bind(&FragmentWorker::handle_write, this,
     114        boost::bind(&FragmentWorker::handle_SendResult, this,
    115115        boost::asio::placeholders::error));
    116116
     
    120120      LOG(1, "INFO: Sending empty result ...");
    121121      connection_.async_write(EmptyResult,
    122         boost::bind(&FragmentWorker::handle_write, this,
     122        boost::bind(&FragmentWorker::handle_SendResult, this,
    123123        boost::asio::placeholders::error));
    124124      Exitflag = NoJobFlag;
     
    136136}
    137137
    138 /// Handle completion of a write operation.
    139 void FragmentWorker::handle_write(const boost::system::error_code& e)
     138/// Callback function when result has been sent.
     139void FragmentWorker::handle_SendResult(const boost::system::error_code& e)
    140140{
    141141  Info info(__FUNCTION__);
  • src/Fragmentation/Automation/FragmentWorker.hpp

    ref2767 r083490  
    3333      boost::asio::ip::tcp::resolver::iterator endpoint_iterator);
    3434
    35   /// Handle completion of a read operation.
    36   void handle_read(const boost::system::error_code& e);
     35  /// Callback function when job has been received.
     36  void handle_ReceiveJob(const boost::system::error_code& e);
    3737
    38   /// Handle completion of a write operation.
    39   void handle_write(const boost::system::error_code& e);
     38  /// Callback function when result has been sent.
     39  void handle_SendResult(const boost::system::error_code& e);
    4040
    4141  enum Exitflag_t {
Note: See TracChangeset for help on using the changeset viewer.