Ignore:
Timestamp:
11/05/19 16:02:34 (5 years ago)
Author:
ymipsl
Message:

Some Update on XIOS services
Seems to work on Irène for :

  • first level of servers
  • fisrt + second level of servers
  • attached mode

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_SERVICES/src/node/context.hpp

    r1761 r1764  
    5353           EVENT_ID_POST_PROCESS, EVENT_ID_SEND_REGISTRY, 
    5454           EVENT_ID_POST_PROCESS_GLOBAL_ATTRIBUTES, 
    55            EVENT_ID_PROCESS_GRID_ENABLED_FIELDS 
     55           EVENT_ID_PROCESS_GRID_ENABLED_FIELDS, 
     56           EVENT_ID_CONTEXT_FINALIZE_CLIENT, 
    5657         }; 
    5758 
     
    106107         bool checkBuffersAndListen(bool enableEventsProcessing=true); 
    107108         bool eventLoop(bool enableEventsProcessing=true); 
     109         void globalEventLoop(void); 
    108110 
    109111         // Finalize a context 
    110112         void finalize(void); 
     113 
    111114         void finalize_old(void); 
    112115         bool isFinalized(void); 
     
    170173         //!< after be gathered to the root process of the context, merged registry is sent to the root process of the servers 
    171174         void sendRegistry(void) ; 
     175         void sendFinalizeClient(CContextClient* contextClient, const string& contextClientId); 
     176 
    172177 
    173178         const StdString& getIdServer(); 
     
    191196         static void recvRegistry(CEventServer& event) ; 
    192197         void recvRegistry(CBufferIn& buffer) ; //!< registry is received by the servers 
    193  
     198         static void recvFinalizeClient(CEventServer& event) ; 
     199         void recvFinalizeClient(CBufferIn& buffer); 
     200          
    194201         void freeComms(void);                  //!< Free internally allcoated communicators 
    195202         void releaseClientBuffers(void);       //! Deallocate buffers allocated by clientContexts 
     
    281288         bool allProcessed; 
    282289         bool finalized; 
    283          int countChildCtx_;        //!< Counter of child contexts (for now it is the number of secondary server pools) 
     290         int countChildContextFinalized_;        //!< Counter of child contexts (for now it is the number of secondary server pools) 
    284291         StdString idServer_; 
    285292         CGarbageCollector garbageCollector; 
Note: See TracChangeset for help on using the changeset viewer.