⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 callback_i.h

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 H
字号:
// Callback_i.h,v 1.7 2002/01/29 20:20:56 okellogg Exp

#ifndef TAO_CALLBACK_I_H
#define TAO_CALLBACK_I_H

#include "callbackS.h"
#include "ace/Sample_History.h"

/// Implement the Test::Callback interface
class Callback_i : public POA_Test::Callback
{
public:
  /// Constructor.
  Callback_i (int expected_samples);

  /// Return 1 when all the samples have been received
  int done (void);

  /// Get access to the history
  ACE_Sample_History &sample_history (void);

  /// Implement the CORBA methods
  //@{
  void response (Test::TimeStamp,
                 const Test::Payload &
                 ACE_ENV_ARG_DECL_NOT_USED)
    ACE_THROW_SPEC ((CORBA::SystemException));
  //@}

private:
  /// Synchronize access to the history data during testing
  TAO_SYNCH_MUTEX mutex_;

  /// Save the history of the latency values
  ACE_Sample_History history_;

  /// The number of samples still expected
  int remaining_samples_;
};

#if defined(__ACE_INLINE__)
#include "Callback_i.inl"
#endif /* __ACE_INLINE__ */

#endif /* TAO_CALLBACK_I_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -