Ignore:
Timestamp:
Apr 5, 2018, 1:19:33 PM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, StoppableMakroAction, TremoloParser_IncreasedPrecision
Children:
0542e2
Parents:
354a5f
git-author:
Frederik Heber <frederik.heber@…> (04/05/18 12:23:30)
git-committer:
Frederik Heber <frederik.heber@…> (04/05/18 13:19:33)
Message:

ControllerListener now also gets const ref to WorkerPool.

  • this is preparatory for allowing Controller to obtain information about enlisted workers.
Location:
ThirdParty/JobMarket/src/JobMarket
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/JobMarket/src/JobMarket/FragmentScheduler.cpp

    r354a5f r1181a3  
    6161      boost::bind(&FragmentScheduler::sendJobToWorker, boost::ref(*this), _1, _2),
    6262      boost::bind(&FragmentScheduler::unmarkWorkerBusy, boost::ref(*this), _1)),
    63   ControllerListener(_io_service, controllerport, JobsQueue,
     63  ControllerListener(_io_service, controllerport, JobsQueue, pool,
    6464      boost::bind(&FragmentScheduler::removeAllWorkers, boost::ref(*this)),
    6565      boost::bind(&FragmentScheduler::shutdown, boost::ref(*this))),
  • ThirdParty/JobMarket/src/JobMarket/FragmentScheduler.hpp

    r354a5f r1181a3  
    165165        unsigned short port,
    166166        FragmentQueue &_JobsQueue,
     167        WorkerPool &_pool,
    167168        boost::function<void ()> _removeallWorkers,
    168169        boost::function<bool ()> _shutdownAllSockets) :
    169170      Listener(io_service, port),
    170171      JobsQueue(_JobsQueue),
     172      pool(_pool),
    171173      jobInfo((size_t)2, 0),
    172174      NumberIds(0),
     
    209211    //!> reference to external FragmentQueue containing jobs to work on
    210212    FragmentQueue & JobsQueue;
     213
     214    //!> const reference to external pool of Workers
     215    const WorkerPool & pool;
    211216
    212217    //!> bunch of jobs received from controller before placed in JobsQueue
Note: See TracChangeset for help on using the changeset viewer.