[300] | 1 | #include "context_server.hpp" |
---|
| 2 | #include "buffer_in.hpp" |
---|
| 3 | #include "type.hpp" |
---|
| 4 | #include "context.hpp" |
---|
[352] | 5 | #include "object_template.hpp" |
---|
| 6 | #include "group_template.hpp" |
---|
| 7 | #include "attribute_template.hpp" |
---|
[300] | 8 | #include "domain.hpp" |
---|
[352] | 9 | #include "field.hpp" |
---|
| 10 | #include "file.hpp" |
---|
| 11 | #include "grid.hpp" |
---|
[382] | 12 | #include "mpi.hpp" |
---|
[347] | 13 | #include "tracer.hpp" |
---|
| 14 | #include "timer.hpp" |
---|
[401] | 15 | #include "cxios.hpp" |
---|
[492] | 16 | #include "event_scheduler.hpp" |
---|
| 17 | #include "server.hpp" |
---|
[1761] | 18 | #include "servers_ressource.hpp" |
---|
| 19 | #include "pool_ressource.hpp" |
---|
| 20 | #include "services.hpp" |
---|
| 21 | #include "contexts_manager.hpp" |
---|
| 22 | |
---|
[492] | 23 | #include <boost/functional/hash.hpp> |
---|
[1761] | 24 | #include <random> |
---|
| 25 | #include <chrono> |
---|
[300] | 26 | |
---|
| 27 | |
---|
[335] | 28 | namespace xios |
---|
[300] | 29 | { |
---|
[1761] | 30 | using namespace std ; |
---|
[300] | 31 | |
---|
[1639] | 32 | CContextServer::CContextServer(CContext* parent,MPI_Comm intraComm_,MPI_Comm interComm_) |
---|
[300] | 33 | { |
---|
[549] | 34 | context=parent; |
---|
| 35 | intraComm=intraComm_; |
---|
[1639] | 36 | MPI_Comm_size(intraComm,&intraCommSize); |
---|
| 37 | MPI_Comm_rank(intraComm,&intraCommRank); |
---|
[1054] | 38 | |
---|
[549] | 39 | interComm=interComm_; |
---|
| 40 | int flag; |
---|
[1639] | 41 | MPI_Comm_test_inter(interComm,&flag); |
---|
[1757] | 42 | |
---|
| 43 | if (flag) attachedMode=false ; |
---|
| 44 | else attachedMode=true ; |
---|
| 45 | |
---|
[1639] | 46 | if (flag) MPI_Comm_remote_size(interComm,&commSize); |
---|
| 47 | else MPI_Comm_size(interComm,&commSize); |
---|
[983] | 48 | |
---|
[1761] | 49 | |
---|
| 50 | SRegisterContextInfo contextInfo ; |
---|
| 51 | CXios::getContextsManager()->getContextInfo(context->getId(), contextInfo, intraComm) ; |
---|
| 52 | |
---|
| 53 | if (contextInfo.serviceType != CServicesManager::CLIENT) // we must have an event scheduler => to be retrieve from the associated services |
---|
| 54 | { |
---|
| 55 | eventScheduler_=CXios::getPoolRessource()->getService(contextInfo.serviceId,contextInfo.partitionId)->getEventScheduler() ; |
---|
| 56 | } |
---|
| 57 | |
---|
| 58 | |
---|
[1757] | 59 | currentTimeLine=1; |
---|
[549] | 60 | scheduled=false; |
---|
| 61 | finished=false; |
---|
[1761] | 62 | |
---|
| 63 | // generate unique hash for server |
---|
| 64 | auto time=chrono::system_clock::now().time_since_epoch().count() ; |
---|
| 65 | std::default_random_engine rd(time); // not reproducible from a run to another |
---|
| 66 | std::uniform_int_distribution<size_t> dist; |
---|
| 67 | hashId=dist(rd) ; |
---|
| 68 | MPI_Bcast(&hashId,1,MPI_SIZE_T,0,intraComm) ; // Bcast to all server of the context |
---|
| 69 | |
---|
| 70 | /* |
---|
[549] | 71 | boost::hash<string> hashString; |
---|
[1761] | 72 | |
---|
[1130] | 73 | if (CServer::serverLevel == 1) |
---|
| 74 | hashId=hashString(context->getId() + boost::lexical_cast<string>(context->clientPrimServer.size())); |
---|
| 75 | else |
---|
| 76 | hashId=hashString(context->getId()); |
---|
[1761] | 77 | */ |
---|
[1757] | 78 | |
---|
| 79 | if (!isAttachedModeEnabled()) |
---|
| 80 | { |
---|
| 81 | MPI_Intercomm_merge(interComm_,true,&interCommMerged) ; |
---|
| 82 | // create windows for one sided comm |
---|
| 83 | int interCommMergedRank; |
---|
| 84 | MPI_Comm winComm ; |
---|
| 85 | MPI_Comm_rank(intraComm, &interCommMergedRank); |
---|
| 86 | windows.resize(2) ; |
---|
| 87 | for(int rank=commSize; rank<commSize+intraCommSize; rank++) |
---|
| 88 | { |
---|
| 89 | if (rank==commSize+interCommMergedRank) |
---|
| 90 | { |
---|
| 91 | MPI_Comm_split(interCommMerged, interCommMergedRank, rank, &winComm); |
---|
| 92 | int myRank ; |
---|
| 93 | MPI_Comm_rank(winComm,&myRank); |
---|
| 94 | MPI_Win_create_dynamic(MPI_INFO_NULL, winComm, &windows[0]); |
---|
| 95 | MPI_Win_create_dynamic(MPI_INFO_NULL, winComm, &windows[1]); |
---|
| 96 | } |
---|
| 97 | else MPI_Comm_split(interCommMerged, interCommMergedRank, rank, &winComm); |
---|
| 98 | MPI_Comm_free(&winComm) ; |
---|
| 99 | } |
---|
| 100 | } |
---|
| 101 | else |
---|
| 102 | { |
---|
| 103 | windows.resize(2) ; |
---|
| 104 | windows[0]=MPI_WIN_NULL ; |
---|
| 105 | windows[1]=MPI_WIN_NULL ; |
---|
| 106 | } |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | MPI_Comm_split(intraComm_,intraCommRank,intraCommRank, &commSelf) ; |
---|
| 111 | itLastTimeLine=lastTimeLine.begin() ; |
---|
| 112 | |
---|
| 113 | pureOneSided=CXios::getin<bool>("pure_one_sided",false); // pure one sided communication (for test) |
---|
| 114 | if (isAttachedModeEnabled()) pureOneSided=false ; // no one sided in attach mode |
---|
| 115 | |
---|
[300] | 116 | } |
---|
[992] | 117 | |
---|
[1757] | 118 | //! Attached mode is used ? |
---|
| 119 | //! \return true if attached mode is used, false otherwise |
---|
| 120 | bool CContextServer::isAttachedModeEnabled() const |
---|
| 121 | { |
---|
| 122 | return attachedMode ; |
---|
| 123 | } |
---|
| 124 | |
---|
[300] | 125 | void CContextServer::setPendingEvent(void) |
---|
| 126 | { |
---|
[549] | 127 | pendingEvent=true; |
---|
[300] | 128 | } |
---|
[489] | 129 | |
---|
[300] | 130 | bool CContextServer::hasPendingEvent(void) |
---|
| 131 | { |
---|
[549] | 132 | return pendingEvent; |
---|
[300] | 133 | } |
---|
[489] | 134 | |
---|
[597] | 135 | bool CContextServer::hasFinished(void) |
---|
| 136 | { |
---|
| 137 | return finished; |
---|
| 138 | } |
---|
| 139 | |
---|
[1054] | 140 | bool CContextServer::eventLoop(bool enableEventsProcessing /*= true*/) |
---|
[300] | 141 | { |
---|
[549] | 142 | listen(); |
---|
| 143 | checkPendingRequest(); |
---|
[1757] | 144 | if (enableEventsProcessing) processEvents(); |
---|
[549] | 145 | return finished; |
---|
[300] | 146 | } |
---|
| 147 | |
---|
| 148 | void CContextServer::listen(void) |
---|
| 149 | { |
---|
| 150 | int rank; |
---|
[549] | 151 | int flag; |
---|
| 152 | int count; |
---|
| 153 | char * addr; |
---|
[1639] | 154 | MPI_Status status; |
---|
[300] | 155 | map<int,CServerBuffer*>::iterator it; |
---|
[1230] | 156 | bool okLoop; |
---|
[489] | 157 | |
---|
[1225] | 158 | traceOff(); |
---|
| 159 | MPI_Iprobe(MPI_ANY_SOURCE, 20,interComm,&flag,&status); |
---|
| 160 | traceOn(); |
---|
| 161 | |
---|
| 162 | if (flag==true) |
---|
[300] | 163 | { |
---|
[1225] | 164 | rank=status.MPI_SOURCE ; |
---|
[1230] | 165 | okLoop = true; |
---|
[1228] | 166 | if (pendingRequest.find(rank)==pendingRequest.end()) |
---|
| 167 | okLoop = !listenPendingRequest(status) ; |
---|
| 168 | if (okLoop) |
---|
[300] | 169 | { |
---|
[1225] | 170 | for(rank=0;rank<commSize;rank++) |
---|
[300] | 171 | { |
---|
[1225] | 172 | if (pendingRequest.find(rank)==pendingRequest.end()) |
---|
[300] | 173 | { |
---|
[1225] | 174 | |
---|
| 175 | traceOff(); |
---|
[1639] | 176 | MPI_Iprobe(rank, 20,interComm,&flag,&status); |
---|
[1225] | 177 | traceOn(); |
---|
| 178 | if (flag==true) listenPendingRequest(status) ; |
---|
[300] | 179 | } |
---|
| 180 | } |
---|
| 181 | } |
---|
| 182 | } |
---|
| 183 | } |
---|
[489] | 184 | |
---|
[1639] | 185 | bool CContextServer::listenPendingRequest(MPI_Status& status) |
---|
[1225] | 186 | { |
---|
| 187 | int count; |
---|
| 188 | char * addr; |
---|
| 189 | map<int,CServerBuffer*>::iterator it; |
---|
| 190 | int rank=status.MPI_SOURCE ; |
---|
| 191 | |
---|
| 192 | it=buffers.find(rank); |
---|
| 193 | if (it==buffers.end()) // Receive the buffer size and allocate the buffer |
---|
| 194 | { |
---|
[1757] | 195 | MPI_Aint recvBuff[3] ; |
---|
| 196 | MPI_Recv(recvBuff, 3, MPI_AINT, rank, 20, interComm, &status); |
---|
| 197 | StdSize buffSize = recvBuff[0]; |
---|
| 198 | vector<MPI_Aint> winAdress(2) ; |
---|
| 199 | winAdress[0]=recvBuff[1] ; winAdress[1]=recvBuff[2] ; |
---|
[1225] | 200 | mapBufferSize_.insert(std::make_pair(rank, buffSize)); |
---|
[1757] | 201 | it=(buffers.insert(pair<int,CServerBuffer*>(rank,new CServerBuffer(windows, winAdress, rank, buffSize)))).first; |
---|
| 202 | /* |
---|
| 203 | if (!isAttachedModeEnabled()) |
---|
| 204 | { |
---|
| 205 | MPI_Comm OneSidedInterComm, oneSidedComm ; |
---|
| 206 | MPI_Intercomm_create(commSelf, 0, interCommMerged, rank, 0, &OneSidedInterComm ); |
---|
| 207 | MPI_Intercomm_merge(OneSidedInterComm,true,&oneSidedComm); |
---|
| 208 | buffers[rank]->createWindows(oneSidedComm) ; |
---|
| 209 | } |
---|
| 210 | */ |
---|
| 211 | lastTimeLine[rank]=0 ; |
---|
| 212 | itLastTimeLine=lastTimeLine.begin() ; |
---|
| 213 | |
---|
[1228] | 214 | return true; |
---|
[1225] | 215 | } |
---|
| 216 | else |
---|
| 217 | { |
---|
[1639] | 218 | MPI_Get_count(&status,MPI_CHAR,&count); |
---|
[1225] | 219 | if (it->second->isBufferFree(count)) |
---|
| 220 | { |
---|
| 221 | addr=(char*)it->second->getBuffer(count); |
---|
[1639] | 222 | MPI_Irecv(addr,count,MPI_CHAR,rank,20,interComm,&pendingRequest[rank]); |
---|
[1225] | 223 | bufferRequest[rank]=addr; |
---|
[1228] | 224 | return true; |
---|
[1225] | 225 | } |
---|
[1228] | 226 | else |
---|
| 227 | return false; |
---|
[1225] | 228 | } |
---|
| 229 | } |
---|
| 230 | |
---|
| 231 | |
---|
[300] | 232 | void CContextServer::checkPendingRequest(void) |
---|
| 233 | { |
---|
[1639] | 234 | map<int,MPI_Request>::iterator it; |
---|
[549] | 235 | list<int> recvRequest; |
---|
[300] | 236 | list<int>::iterator itRecv; |
---|
[549] | 237 | int rank; |
---|
| 238 | int flag; |
---|
| 239 | int count; |
---|
[1639] | 240 | MPI_Status status; |
---|
[489] | 241 | |
---|
[300] | 242 | for(it=pendingRequest.begin();it!=pendingRequest.end();it++) |
---|
| 243 | { |
---|
[549] | 244 | rank=it->first; |
---|
| 245 | traceOff(); |
---|
[1639] | 246 | MPI_Test(& it->second, &flag, &status); |
---|
[549] | 247 | traceOn(); |
---|
[300] | 248 | if (flag==true) |
---|
| 249 | { |
---|
[1757] | 250 | buffers[rank]->updateCurrentWindows() ; |
---|
[549] | 251 | recvRequest.push_back(rank); |
---|
[1639] | 252 | MPI_Get_count(&status,MPI_CHAR,&count); |
---|
[549] | 253 | processRequest(rank,bufferRequest[rank],count); |
---|
[300] | 254 | } |
---|
| 255 | } |
---|
[489] | 256 | |
---|
| 257 | for(itRecv=recvRequest.begin();itRecv!=recvRequest.end();itRecv++) |
---|
[300] | 258 | { |
---|
[549] | 259 | pendingRequest.erase(*itRecv); |
---|
| 260 | bufferRequest.erase(*itRecv); |
---|
[300] | 261 | } |
---|
| 262 | } |
---|
[489] | 263 | |
---|
[1757] | 264 | void CContextServer::getBufferFromClient(size_t timeLine) |
---|
| 265 | { |
---|
| 266 | if (!isAttachedModeEnabled()) // one sided desactivated in attached mode |
---|
| 267 | { |
---|
| 268 | int rank ; |
---|
| 269 | char *buffer ; |
---|
| 270 | size_t count ; |
---|
| 271 | |
---|
| 272 | if (itLastTimeLine==lastTimeLine.end()) itLastTimeLine=lastTimeLine.begin() ; |
---|
| 273 | for(;itLastTimeLine!=lastTimeLine.end();++itLastTimeLine) |
---|
| 274 | { |
---|
| 275 | rank=itLastTimeLine->first ; |
---|
| 276 | if (itLastTimeLine->second < timeLine && pendingRequest.count(rank)==0) |
---|
| 277 | { |
---|
| 278 | if (buffers[rank]->getBufferFromClient(timeLine, buffer, count)) |
---|
| 279 | { |
---|
| 280 | processRequest(rank, buffer, count); |
---|
| 281 | break ; |
---|
| 282 | } |
---|
| 283 | } |
---|
| 284 | } |
---|
| 285 | } |
---|
| 286 | } |
---|
| 287 | |
---|
| 288 | |
---|
[300] | 289 | void CContextServer::processRequest(int rank, char* buff,int count) |
---|
| 290 | { |
---|
[489] | 291 | |
---|
[549] | 292 | CBufferIn buffer(buff,count); |
---|
| 293 | char* startBuffer,endBuffer; |
---|
| 294 | int size, offset; |
---|
[1757] | 295 | size_t timeLine=0; |
---|
[549] | 296 | map<size_t,CEventServer*>::iterator it; |
---|
[489] | 297 | |
---|
[1757] | 298 | |
---|
[1225] | 299 | CTimer::get("Process request").resume(); |
---|
[300] | 300 | while(count>0) |
---|
| 301 | { |
---|
[549] | 302 | char* startBuffer=(char*)buffer.ptr(); |
---|
| 303 | CBufferIn newBuffer(startBuffer,buffer.remain()); |
---|
| 304 | newBuffer>>size>>timeLine; |
---|
| 305 | it=events.find(timeLine); |
---|
| 306 | if (it==events.end()) it=events.insert(pair<int,CEventServer*>(timeLine,new CEventServer)).first; |
---|
| 307 | it->second->push(rank,buffers[rank],startBuffer,size); |
---|
[300] | 308 | |
---|
[549] | 309 | buffer.advance(size); |
---|
| 310 | count=buffer.remain(); |
---|
[489] | 311 | } |
---|
[1757] | 312 | |
---|
| 313 | if (timeLine>0) lastTimeLine[rank]=timeLine ; |
---|
| 314 | |
---|
[1225] | 315 | CTimer::get("Process request").suspend(); |
---|
[300] | 316 | } |
---|
[489] | 317 | |
---|
[300] | 318 | void CContextServer::processEvents(void) |
---|
| 319 | { |
---|
[549] | 320 | map<size_t,CEventServer*>::iterator it; |
---|
| 321 | CEventServer* event; |
---|
[1761] | 322 | |
---|
| 323 | if (context->isProcessingEvent()) return ; |
---|
[489] | 324 | |
---|
[549] | 325 | it=events.find(currentTimeLine); |
---|
[489] | 326 | if (it!=events.end()) |
---|
[300] | 327 | { |
---|
[549] | 328 | event=it->second; |
---|
[509] | 329 | |
---|
[300] | 330 | if (event->isFull()) |
---|
| 331 | { |
---|
[597] | 332 | if (!scheduled && CServer::eventScheduler) // Skip event scheduling for attached mode and reception on client side |
---|
[492] | 333 | { |
---|
[549] | 334 | CServer::eventScheduler->registerEvent(currentTimeLine,hashId); |
---|
| 335 | scheduled=true; |
---|
[492] | 336 | } |
---|
[597] | 337 | else if (!CServer::eventScheduler || CServer::eventScheduler->queryEvent(currentTimeLine,hashId) ) |
---|
[492] | 338 | { |
---|
[851] | 339 | // When using attached mode, synchronise the processes to avoid that differents event be scheduled by differents processes |
---|
| 340 | // The best way to properly solve this problem will be to use the event scheduler also in attached mode |
---|
| 341 | // for now just set up a MPI barrier |
---|
[1639] | 342 | if (!CServer::eventScheduler && CXios::isServer) MPI_Barrier(intraComm) ; |
---|
[851] | 343 | |
---|
[1761] | 344 | context->setProcessingEvent() ; |
---|
[549] | 345 | CTimer::get("Process events").resume(); |
---|
| 346 | dispatchEvent(*event); |
---|
| 347 | CTimer::get("Process events").suspend(); |
---|
[1761] | 348 | context->unsetProcessingEvent() ; |
---|
[549] | 349 | pendingEvent=false; |
---|
| 350 | delete event; |
---|
| 351 | events.erase(it); |
---|
| 352 | currentTimeLine++; |
---|
| 353 | scheduled = false; |
---|
[492] | 354 | } |
---|
| 355 | } |
---|
[1757] | 356 | else getBufferFromClient(currentTimeLine) ; |
---|
[492] | 357 | } |
---|
[1757] | 358 | else if (pureOneSided) getBufferFromClient(currentTimeLine) ; // if pure one sided check buffer even if no event recorded at current time line |
---|
[492] | 359 | } |
---|
[489] | 360 | |
---|
[300] | 361 | CContextServer::~CContextServer() |
---|
| 362 | { |
---|
[549] | 363 | map<int,CServerBuffer*>::iterator it; |
---|
[1158] | 364 | for(it=buffers.begin();it!=buffers.end();++it) delete it->second; |
---|
[489] | 365 | } |
---|
[300] | 366 | |
---|
[1757] | 367 | void CContextServer::releaseBuffers() |
---|
| 368 | { |
---|
| 369 | map<int,CServerBuffer*>::iterator it; |
---|
| 370 | bool out ; |
---|
| 371 | do |
---|
| 372 | { |
---|
| 373 | out=true ; |
---|
| 374 | for(it=buffers.begin();it!=buffers.end();++it) |
---|
| 375 | { |
---|
| 376 | // out = out && it->second->freeWindows() ; |
---|
| 377 | |
---|
| 378 | } |
---|
| 379 | } while (! out) ; |
---|
| 380 | } |
---|
| 381 | |
---|
| 382 | void CContextServer::notifyClientsFinalize(void) |
---|
| 383 | { |
---|
| 384 | for(auto it=buffers.begin();it!=buffers.end();++it) |
---|
| 385 | { |
---|
| 386 | it->second->notifyClientFinalize() ; |
---|
| 387 | } |
---|
| 388 | } |
---|
| 389 | |
---|
[300] | 390 | void CContextServer::dispatchEvent(CEventServer& event) |
---|
| 391 | { |
---|
[549] | 392 | string contextName; |
---|
| 393 | string buff; |
---|
| 394 | int MsgSize; |
---|
| 395 | int rank; |
---|
| 396 | list<CEventServer::SSubEvent>::iterator it; |
---|
[1054] | 397 | StdString ctxId = context->getId(); |
---|
| 398 | CContext::setCurrent(ctxId); |
---|
[1130] | 399 | StdSize totalBuf = 0; |
---|
[489] | 400 | |
---|
[300] | 401 | if (event.classId==CContext::GetType() && event.type==CContext::EVENT_ID_CONTEXT_FINALIZE) |
---|
| 402 | { |
---|
[597] | 403 | finished=true; |
---|
[1194] | 404 | info(20)<<" CContextServer: Receive context <"<<context->getId()<<"> finalize."<<endl; |
---|
[1757] | 405 | // releaseBuffers() ; |
---|
| 406 | notifyClientsFinalize() ; |
---|
[1194] | 407 | context->finalize(); |
---|
[1757] | 408 | |
---|
| 409 | /* don't know where release windows |
---|
| 410 | MPI_Win_free(&windows[0]) ; |
---|
| 411 | MPI_Win_free(&windows[1]) ; |
---|
| 412 | */ |
---|
[511] | 413 | std::map<int, StdSize>::const_iterator itbMap = mapBufferSize_.begin(), |
---|
[983] | 414 | iteMap = mapBufferSize_.end(), itMap; |
---|
[511] | 415 | for (itMap = itbMap; itMap != iteMap; ++itMap) |
---|
| 416 | { |
---|
[1054] | 417 | rank = itMap->first; |
---|
[1130] | 418 | report(10)<< " Memory report : Context <"<<ctxId<<"> : server side : memory used for buffer of each connection to client" << endl |
---|
| 419 | << " +) With client of rank " << rank << " : " << itMap->second << " bytes " << endl; |
---|
| 420 | totalBuf += itMap->second; |
---|
[511] | 421 | } |
---|
[1130] | 422 | report(0)<< " Memory report : Context <"<<ctxId<<"> : server side : total memory used for buffer "<<totalBuf<<" bytes"<<endl; |
---|
[300] | 423 | } |
---|
[549] | 424 | else if (event.classId==CContext::GetType()) CContext::dispatchEvent(event); |
---|
| 425 | else if (event.classId==CContextGroup::GetType()) CContextGroup::dispatchEvent(event); |
---|
| 426 | else if (event.classId==CCalendarWrapper::GetType()) CCalendarWrapper::dispatchEvent(event); |
---|
| 427 | else if (event.classId==CDomain::GetType()) CDomain::dispatchEvent(event); |
---|
| 428 | else if (event.classId==CDomainGroup::GetType()) CDomainGroup::dispatchEvent(event); |
---|
| 429 | else if (event.classId==CAxis::GetType()) CAxis::dispatchEvent(event); |
---|
| 430 | else if (event.classId==CAxisGroup::GetType()) CAxisGroup::dispatchEvent(event); |
---|
[887] | 431 | else if (event.classId==CScalar::GetType()) CScalar::dispatchEvent(event); |
---|
| 432 | else if (event.classId==CScalarGroup::GetType()) CScalarGroup::dispatchEvent(event); |
---|
[549] | 433 | else if (event.classId==CGrid::GetType()) CGrid::dispatchEvent(event); |
---|
| 434 | else if (event.classId==CGridGroup::GetType()) CGridGroup::dispatchEvent(event); |
---|
| 435 | else if (event.classId==CField::GetType()) CField::dispatchEvent(event); |
---|
| 436 | else if (event.classId==CFieldGroup::GetType()) CFieldGroup::dispatchEvent(event); |
---|
| 437 | else if (event.classId==CFile::GetType()) CFile::dispatchEvent(event); |
---|
| 438 | else if (event.classId==CFileGroup::GetType()) CFileGroup::dispatchEvent(event); |
---|
| 439 | else if (event.classId==CVariable::GetType()) CVariable::dispatchEvent(event); |
---|
[300] | 440 | else |
---|
| 441 | { |
---|
[549] | 442 | ERROR("void CContextServer::dispatchEvent(CEventServer& event)",<<" Bad event class Id"<<endl); |
---|
[300] | 443 | } |
---|
| 444 | } |
---|
| 445 | } |
---|