diff options
Diffstat (limited to 'TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.cpp')
-rw-r--r-- | TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.cpp b/TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.cpp new file mode 100644 index 00000000000..a9bc97712f4 --- /dev/null +++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/RTClient_Setup.cpp @@ -0,0 +1,49 @@ +/** + * @file RTClient_Setup.cpp + * + * $Id$ + * + * @author Carlos O'Ryan <coryan@uci.edu> + */ + +#include "RTClient_Setup.h" +#include "RIR_Narrow.h" +#include "tao/RTCORBA/RTCORBA.h" + +#include "ace/Log_Msg.h" + +#if !defined(__ACE_INLINE__) +#include "RTClient_Setup.inl" +#endif /* __ACE_INLINE__ */ + +ACE_RCSID (TAO_PERF_RTEC, + RTClient_Setup, + "$Id$") + +RTClient_Setup::RTClient_Setup (int use_rt_corba, + CORBA::ORB_ptr orb, + const RT_Class &rt_class, + int nthreads) + : use_rt_corba_ (use_rt_corba) + , syncscope_setup_ (orb) +{ + + if (use_rt_corba) + { + ACE_AUTO_PTR_RESET (this->rtcorba_setup_, + new RTCORBA_Setup (orb, + rt_class, + nthreads), + RTCORBA_Setup + ); + +#if 0 + ACE_AUTO_PTR_RESET (this->priorityband_setup_, + new PriorityBand_Setup (orb, + *this->rtcorba_setup_), + PriorityBand_Setup + ); + +#endif /* 0 */ + } +} |