Changeset 492 for XIOS/trunk/src/context_server.cpp
- Timestamp:
- 10/02/14 17:34:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/context_server.cpp
r489 r492 14 14 #include "timer.hpp" 15 15 #include "cxios.hpp" 16 #include "event_scheduler.hpp" 17 #include "server.hpp" 18 #include <boost/functional/hash.hpp> 16 19 17 20 … … 32 35 else MPI_Comm_size(interComm,&commSize) ; 33 36 currentTimeLine=0 ; 37 scheduled=false ; 34 38 finished=false ; 39 40 boost::hash<string> hashString ; 41 hashId=hashString(context->getId()) ; 42 35 43 } 36 44 void CContextServer::setPendingEvent(void) … … 150 158 { 151 159 event=it->second ; 160 152 161 if (event->isFull()) 153 162 { 163 if (!scheduled && !CXios::isServer) 164 { 165 CServer::eventScheduler->registerEvent(currentTimeLine,hashId) ; 166 scheduled=true ; 167 } 168 else if (CXios::isServer || CServer::eventScheduler->queryEvent(currentTimeLine,hashId) ) 169 { 154 170 CTimer::get("Process events").resume() ; 155 171 dispatchEvent(*event) ; … … 159 175 events.erase(it) ; 160 176 currentTimeLine++ ; 161 } 162 } 163 } 177 scheduled = false ; 178 } 179 } 180 } 181 } 164 182 165 183 CContextServer::~CContextServer()
Note: See TracChangeset
for help on using the changeset viewer.