diff options
Diffstat (limited to 'TAO/orbsvcs/performance-tests/RTEvent/lib/Shutdown.h')
-rw-r--r-- | TAO/orbsvcs/performance-tests/RTEvent/lib/Shutdown.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/lib/Shutdown.h b/TAO/orbsvcs/performance-tests/RTEvent/lib/Shutdown.h new file mode 100644 index 00000000000..d0737b7bf01 --- /dev/null +++ b/TAO/orbsvcs/performance-tests/RTEvent/lib/Shutdown.h @@ -0,0 +1,34 @@ +/** + * @file Shutdown.h + * + * $Id$ + * + * @author Carlos O'Ryan <coryan@uci.edu> + */ +#ifndef TAO_PERF_RTEC_SHUTDOWN_H +#define TAO_PERF_RTEC_SHUTDOWN_H + +#include "ace/config-all.h" +#include "ace/CORBA_macros.h" + +/** + * @class Shutdown + * + * @brief Helper functor to call the shutdown() method of a class. + */ +template<class Client> +class Shutdown +{ +public: + void operator() (Client *client); +}; + +#if defined(__ACE_INLINE__) +#include "Shutdown.inl" +#endif /* __ACE_INLINE__ */ + +#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) +#include "Shutdown.cpp" +#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ + +#endif /* TAO_PERF_RTEC_SHUTDOWN_H */ |