Ignore:
Timestamp:
09/19/22 10:38:09 (21 months ago)
Author:
ymipsl
Message:

Add the possibility to launch a service on same ressource than an other.
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/manager/services.hpp

    r2274 r2404  
    2020 
    2121    CService(MPI_Comm serviceComm, const std::string& poolId, const std::string& serviceId, const int& partitionId,  
    22              int type, int nbPartitions) ; 
     22             int type, int nbPartitions, shared_ptr<CEventScheduler> = nullptr) ; 
    2323    ~CService() ; 
    2424 
     
    3232    CServerContext* getServerContext(const std::string& contextId) { return contexts_[contextId]; } 
    3333    void finalizeSignal(void) ; 
    34     CEventScheduler* getEventScheduler(void) ; 
     34    shared_ptr<CEventScheduler> getEventScheduler(void) ; 
    3535 
    3636    std::string getPoolId(void) {return poolId_;} 
     
    3939    int getType(void) {return type_;} 
    4040    int getNbPartitions(void) {return nbPartitions_;} 
     41    const MPI_Comm& getCommunicator(void) { return serviceComm_ ;} 
    4142     
    4243    private: 
     
    6566    std::map<std::string, CServerContext*> contexts_ ; 
    6667    bool finalizeSignal_ ; 
    67     CEventScheduler* eventScheduler_ ; 
     68    shared_ptr<CEventScheduler> eventScheduler_ ; 
    6869 
    6970    std::string poolId_ ; 
Note: See TracChangeset for help on using the changeset viewer.