Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / performance-tests / Callback / Callback_i.h
blob4b519cc54687549e2854461ba139b2a5d4dab2ad
1 #ifndef TAO_CALLBACK_I_H
2 #define TAO_CALLBACK_I_H
4 #include "callbackS.h"
5 #include "ace/Sample_History.h"
7 /// Implement the Test::Callback interface
8 class Callback_i : public POA_Test::Callback
10 public:
11 /// Constructor.
12 Callback_i (int expected_samples);
14 /// Return 1 when all the samples have been received
15 int done ();
17 /// Get access to the history
18 ACE_Sample_History &sample_history ();
20 /// Implement the CORBA methods
21 //@{
22 void response (Test::TimeStamp,
23 const Test::Payload &);
24 //@}
26 private:
27 /// Synchronize access to the history data during testing
28 TAO_SYNCH_MUTEX mutex_;
30 /// Save the history of the latency values
31 ACE_Sample_History history_;
33 /// The number of samples still expected
34 int remaining_samples_;
37 #if defined(__ACE_INLINE__)
38 #include "Callback_i.inl"
39 #endif /* __ACE_INLINE__ */
41 #endif /* TAO_CALLBACK_I_H */