Changeset 2547 for XIOS3/trunk/src/node/pool_node.cpp
- Timestamp:
- 08/29/23 17:24:04 (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/node/pool_node.cpp
r2458 r2547 1 1 #include "pool_node.hpp" 2 2 #include "cxios.hpp" 3 #include "thread_manager.hpp" 3 4 #include<cmath> 4 5 … … 61 62 else ERROR("void CPoolNode::allocateRessources(void)",<<"Pool has no name or id, attributes <id> or <name> must be specified") 62 63 ressourcesManager->createPool(poolId, nbRessources) ; 63 ressourcesManager->waitPoolRegistration(poolId) ; 64 if (CThreadManager::isUsingThreads()) 65 while(!ressourcesManager->hasPool(CXios::defaultPoolId)) 66 { 67 CXios::getDaemonsManager()->eventLoop() ; 68 CThreadManager::yield() ; 69 } 70 else ressourcesManager->waitPoolRegistration(poolId) ; 64 71 auto services=this->getAllServiceNodes() ; 65 72 for(auto& service : services) service->allocateRessources(poolId) ;
Note: See TracChangeset
for help on using the changeset viewer.