Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / ACE / protocols / ace / RMCast / Flow.h
blobc1d42105adb461ce2d8886eb7d6b9fe7428055e4
1 // author : Boris Kolpackov <boris@kolpackov.net>
3 #ifndef ACE_RMCAST_FLOW_H
4 #define ACE_RMCAST_FLOW_H
6 #include "Stack.h"
7 #include "Protocol.h"
8 #include "Bits.h"
9 #include "Parameters.h"
11 namespace ACE_RMCast
13 class Flow : public Element
15 public:
16 Flow (Parameters const& );
18 public:
19 virtual void
20 send (Message_ptr m);
22 virtual void
23 recv (Message_ptr m);
25 private:
26 // Parameters const& params_;
28 Mutex mutex_;
29 ACE_Time_Value nak_time_;
31 // Throughput sampling.
33 ACE_Time_Value sample_start_time_;
34 unsigned long sample_bytes_;
35 double current_tput_;
36 double cap_tput_;
41 #endif // ACE_RMCAST_FLOW_H