blob: 917032bcdfb1a64c2197b6f383eb171f3f3e4899 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// $Id$
#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 &,
CORBA::Environment &)
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 */
|