Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / examples / RTScheduling / Starter.h
blob664dadde5f96cdc010b20fb791abcf61ead0097f
1 #ifndef STARTER_H
2 #define STARTER_H
4 #include "SynchC.h"
6 #include "orbsvcs/Naming/Naming_Client.h"
7 #include "orbsvcs/Naming/Naming_Server.h"
9 #include "ace/SString.h"
10 #include "ace/Hash_Map_Manager.h"
12 class Starter
14 public:
15 Starter (CORBA::ORB_ptr orb);
17 void init ();
19 void fire ();
21 typedef ACE_Hash_Map_Manager <ACE_CString,
22 Synch_var,
23 ACE_Null_Mutex> Synchs;
25 private:
26 void resolve_synch_objs ();
28 void add_to_synchs (CosNaming::BindingList &binding_list);
30 /// A naming context.
31 CosNaming::NamingContext_var synch_context_;
32 TAO_Naming_Client naming_client_;
34 Synchs synchs_;
37 #endif /*STARTER_H*/