1 #ifndef TAO_CALLBACK_I_H
2 #define TAO_CALLBACK_I_H
5 #include "ace/Sample_History.h"
7 /// Implement the Test::Callback interface
8 class Callback_i
: public POA_Test::Callback
12 Callback_i (int expected_samples
);
14 /// Return 1 when all the samples have been received
17 /// Get access to the history
18 ACE_Sample_History
&sample_history ();
20 /// Implement the CORBA methods
22 void response (Test::TimeStamp
,
23 const Test::Payload
&);
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 */