Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / RTScheduling / Starter.h
blob49b50d41afaf6cccc3b7a9656eab2265f4773cc1
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:
16 Starter (CORBA::ORB_ptr orb);
18 void init (void);
20 void fire (void);
22 typedef ACE_Hash_Map_Manager <ACE_CString,
23 Synch_var,
24 ACE_Null_Mutex> Synchs;
26 private:
27 void resolve_synch_objs (void);
29 void add_to_synchs (CosNaming::BindingList &binding_list);
31 /// A naming context.
32 CosNaming::NamingContext_var synch_context_;
33 TAO_Naming_Client naming_client_;
35 Synchs synchs_;
38 #endif /*STARTER_H*/