diff options
Diffstat (limited to 'TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Callback.h')
-rw-r--r-- | TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Callback.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Callback.h b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Callback.h new file mode 100644 index 00000000000..58bd29e294b --- /dev/null +++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/Callback.h @@ -0,0 +1,60 @@ +/** + * @file Callback.h + * + * $Id$ + * + */ + +#ifndef CALLBACK_H +#define CALLBACK_H +#include "ace/pre.h" + +#include "TestS.h" +#include "ace/Sample_History.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +/** + * @class Callback + * + * @brief Implicit the Test::Callback interface + * + */ +class Callback + : public virtual POA_Test::Callback + , public virtual PortableServer::RefCountServantBase + +{ +public: + /// Constructor + Callback (int iterations, + PortableServer::POA_ptr poa); + + /// Access the history of samples + ACE_Sample_History &sample_history (void); + + //@{ + /** @name The RtecEventComm::PushCallback methods + */ + virtual void sample (Test::Timestamp the_timestamp + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)); + + PortableServer::POA_ptr _default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)); + //@} + +private: + /// Synchronize access to the internal data + TAO_SYNCH_MUTEX mutex_; + + /// The history of latency samples + ACE_Sample_History sample_history_; + + /// The default poa + PortableServer::POA_var poa_; +}; + +#endif /* TAO_PERF_RTEC_CALLBACK_H */ |