Changeset 597 for XIOS/trunk/src/context_server.cpp
- Timestamp:
- 05/26/15 16:13:47 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/context_server.cpp
r549 r597 52 52 } 53 53 54 bool CContextServer::hasFinished(void) 55 { 56 return finished; 57 } 58 54 59 bool CContextServer::eventLoop(void) 55 60 { … … 79 84 { 80 85 it=buffers.find(rank); 81 if (it==buffers.end()) 86 if (it==buffers.end()) // Receive the buffer size and allocate the buffer 82 87 { 83 88 StdSize buffSize = 0; … … 169 174 if (event->isFull()) 170 175 { 171 if (!scheduled && !CXios::isServer)176 if (!scheduled && CServer::eventScheduler) // Skip event scheduling for attached mode and reception on client side 172 177 { 173 178 CServer::eventScheduler->registerEvent(currentTimeLine,hashId); 174 179 scheduled=true; 175 180 } 176 else if ( CXios::isServer || CServer::eventScheduler->queryEvent(currentTimeLine,hashId) )181 else if (!CServer::eventScheduler || CServer::eventScheduler->queryEvent(currentTimeLine,hashId) ) 177 182 { 178 183 CTimer::get("Process events").resume(); … … 207 212 if (event.classId==CContext::GetType() && event.type==CContext::EVENT_ID_CONTEXT_FINALIZE) 208 213 { 214 finished=true; 209 215 info(20)<<"Server Side context <"<<context->getId()<<"> finalized"<<endl; 210 216 std::map<int, StdSize>::const_iterator itbMap = mapBufferSize_.begin(), … … 218 224 } 219 225 context->finalize(); 220 finished=true;221 226 report(0)<< " Memory report : Context <"<<context->getId()<<"> : server side : total memory used for buffer "<<totalBuf<<" bytes"<<endl; 222 227 }
Note: See TracChangeset
for help on using the changeset viewer.