- Timestamp:
- May 4, 2012, 2:19:07 PM (13 years ago)
- 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)
- Location:
- src/Fragmentation/Automation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Automation/FragmentScheduler.cpp
ref2767 r083490 73 73 LOG(1, "INFO: Sending job #" << job.getId() << "."); 74 74 conn->async_write(job, 75 boost::bind(&FragmentScheduler::handle_ write, this,75 boost::bind(&FragmentScheduler::handle_SendJob, this, 76 76 boost::asio::placeholders::error, conn)); 77 77 … … 85 85 // send the static NoJob 86 86 conn->async_write(NoJob, 87 boost::bind(&FragmentScheduler::handle_ write, this,87 boost::bind(&FragmentScheduler::handle_SendJob, this, 88 88 boost::asio::placeholders::error, conn)); 89 89 … … 102 102 } 103 103 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. 105 void FragmentScheduler::handle_SendJob(const boost::system::error_code& e, connection_ptr conn) 106 106 { 107 107 Info info(__FUNCTION__); … … 110 110 LOG(1, "INFO: Receiving result for a job ..."); 111 111 conn->async_read(result, 112 boost::bind(&FragmentScheduler::handle_ read, this,112 boost::bind(&FragmentScheduler::handle_ReceiveResult, this, 113 113 boost::asio::placeholders::error, conn)); 114 114 } 115 115 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. 117 void FragmentScheduler::handle_ReceiveResult(const boost::system::error_code& e, connection_ptr conn) 118 118 { 119 119 Info info(__FUNCTION__); -
src/Fragmentation/Automation/FragmentScheduler.hpp
ref2767 r083490 35 35 void handle_accept(const boost::system::error_code& e, connection_ptr conn); 36 36 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); 39 39 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); 42 42 43 43 private: -
src/Fragmentation/Automation/FragmentWorker.cpp
ref2767 r083490 75 75 LOG(1, "INFO: Receiving a job ..."); 76 76 connection_.async_read(job, 77 boost::bind(&FragmentWorker::handle_ read, this,77 boost::bind(&FragmentWorker::handle_ReceiveJob, this, 78 78 boost::asio::placeholders::error)); 79 79 } else if (endpoint_iterator != boost::asio::ip::tcp::resolver::iterator()) { … … 93 93 } 94 94 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. 96 void FragmentWorker::handle_ReceiveJob(const boost::system::error_code& e) 97 97 { 98 98 Info info(__FUNCTION__); … … 112 112 LOG(1, "INFO: Sending result for job #" << job.getId() << " ..."); 113 113 connection_.async_write(result, 114 boost::bind(&FragmentWorker::handle_ write, this,114 boost::bind(&FragmentWorker::handle_SendResult, this, 115 115 boost::asio::placeholders::error)); 116 116 … … 120 120 LOG(1, "INFO: Sending empty result ..."); 121 121 connection_.async_write(EmptyResult, 122 boost::bind(&FragmentWorker::handle_ write, this,122 boost::bind(&FragmentWorker::handle_SendResult, this, 123 123 boost::asio::placeholders::error)); 124 124 Exitflag = NoJobFlag; … … 136 136 } 137 137 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. 139 void FragmentWorker::handle_SendResult(const boost::system::error_code& e) 140 140 { 141 141 Info info(__FUNCTION__); -
src/Fragmentation/Automation/FragmentWorker.hpp
ref2767 r083490 33 33 boost::asio::ip::tcp::resolver::iterator endpoint_iterator); 34 34 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); 37 37 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); 40 40 41 41 enum Exitflag_t {
Note:
See TracChangeset
for help on using the changeset viewer.