From 5a4291a430d1584d05382510449408f4d70327a9 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Sun, 3 Jun 2012 18:38:55 +0200 Subject: libdistrio_common: corba helpers orb needs to run in thread - otherwise registration of objects won't work - because orb has to host objects which will be registered -> id (7) is a callback which cant be called if not hosted Signed-off-by: Manuel Traut --- common/distrio_helper.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common/distrio_helper.h') diff --git a/common/distrio_helper.h b/common/distrio_helper.h index 7bad2de..da1e290 100644 --- a/common/distrio_helper.h +++ b/common/distrio_helper.h @@ -17,6 +17,10 @@ #include +#define ORB_NOT_INITIALIZED 0 +#define ORB_INIT 1 +#define ORB_RUNNING 2 + /** * handle to corba objects needed for registration of new objects and running * the ORB @@ -28,10 +32,11 @@ typedef struct _corba_ref { PortableServer::POA_var poa; PortableServer::POAManager_var poa_mgr; CosNaming::NamingContext_var nc; + Distrio::Manager_var manager; } corba_ref; static corba_ref ref = { - .init = 0, + .init = ORB_NOT_INITIALIZED, }; /** initialize corba orb - argc, argv as passed to main() */ -- cgit v1.2.3