summaryrefslogtreecommitdiff
path: root/common/distrio_helper.h
diff options
context:
space:
mode:
authorManuel Traut <manut@mecka.net>2012-06-03 18:38:55 +0200
committerManuel Traut <manut@mecka.net>2012-06-03 18:38:55 +0200
commit5a4291a430d1584d05382510449408f4d70327a9 (patch)
treec9d8b31c04e6d3040d62f59465d4af058c8050a7 /common/distrio_helper.h
parent539deb398f598acbe12b188b65a047c62f8157fb (diff)
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 <manut@mecka.net>
Diffstat (limited to 'common/distrio_helper.h')
-rw-r--r--common/distrio_helper.h7
1 files changed, 6 insertions, 1 deletions
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 <orbsvcs/CosNamingC.h>
+#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() */