]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
reset CORBA default thread model for study POA pre/YacsParallelMesh83
authorPaul RASCLE <paul.rascle@edf.fr>
Thu, 29 Mar 2018 14:31:10 +0000 (16:31 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Thu, 29 Mar 2018 14:31:10 +0000 (16:31 +0200)
src/SALOMEDS/SALOMEDS.cxx
src/SALOMEDS/SALOMEDS_Server.cxx

index 06dda32112b30631bba12f0a9dd90d0f88b7056c..e6313314bd9e929a7f93bddd525fa207f244d6a4 100644 (file)
@@ -123,7 +123,8 @@ SALOMEDS_EXPORT
     PortableServer::POAManager_var pman = root_poa->the_POAManager();
     CORBA::PolicyList policies;
     policies.length(2);
-    PortableServer::ThreadPolicy_var threadPol(root_poa->create_thread_policy(PortableServer::SINGLE_THREAD_MODEL));
+    //PortableServer::ThreadPolicy_var threadPol(root_poa->create_thread_policy(PortableServer::SINGLE_THREAD_MODEL));
+    PortableServer::ThreadPolicy_var threadPol(root_poa->create_thread_policy(PortableServer::ORB_CTRL_MODEL));
     PortableServer::ImplicitActivationPolicy_var implicitPol(root_poa->create_implicit_activation_policy(PortableServer::IMPLICIT_ACTIVATION));
     policies[0] = PortableServer::ThreadPolicy::_duplicate(threadPol);
     policies[1] = PortableServer::ImplicitActivationPolicy::_duplicate(implicitPol);
index a780abd6cc2c861a34954b83908c2ba6e08f2477..26cce9bb7a608e6b9b2acd7a40a815463372dcfe 100644 (file)
@@ -103,8 +103,9 @@ int main(int argc, char** argv)
               PortableServer::POAManager_var pman = defaultPoa->the_POAManager();
               CORBA::PolicyList policies;
               policies.length(2);
-              PortableServer::ThreadPolicy_var threadPol(defaultPoa->create_thread_policy(PortableServer::SINGLE_THREAD_MODEL));
-              PortableServer::ImplicitActivationPolicy_var implicitPol(defaultPoa->create_implicit_activation_policy(PortableServer::IMPLICIT_ACTIVATION));
+              //PortableServer::ThreadPolicy_var threadPol(defaultPoa->create_thread_policy(PortableServer::SINGLE_THREAD_MODEL));
+              PortableServer::ThreadPolicy_var threadPol(defaultPoa->create_thread_policy(PortableServer::ORB_CTRL_MODEL)); // default for all POAs
+              PortableServer::ImplicitActivationPolicy_var implicitPol(defaultPoa->create_implicit_activation_policy(PortableServer::IMPLICIT_ACTIVATION)); // default for Root_POA, NO for others
               policies[0] = PortableServer::ThreadPolicy::_duplicate(threadPol);
               policies[1] = PortableServer::ImplicitActivationPolicy::_duplicate(implicitPol);
               poa = defaultPoa->create_POA("KERNELStandaloneStudySingleThreadPOA",pman,policies);