Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Big_Twoways / Session_Control.h
blobbd9e1d24bbdb1f9f6c413eaefb0ef17e0a8dd500
2 #ifndef BIG_ONEWAYS_SESSION_CONTROL_H
3 #define BIG_ONEWAYS_SESSION_CONTROL_H
4 #include /**/ "ace/pre.h"
6 #include "TestS.h"
8 /// Implement the Test::Session_Control interface
9 class Session_Control
10 : public virtual POA_Test::Session_Control
12 public:
13 /// Constructor
14 /**
15 * @param session_count Number of session objects in the experiment.
17 Session_Control (CORBA::ULong session_count);
19 /// Destructor
20 virtual ~Session_Control ();
22 /// Return 1 when all sessions have finished
23 int all_sessions_finished () const;
25 // = The skeleton methods
26 virtual void session_finished (CORBA::Boolean success);
28 private:
29 /// Synchronize the internal state
30 TAO_SYNCH_MUTEX mutex_;
32 /// The type of test
33 CORBA::ULong session_count_;
35 /// Set to falso if any session reported a failure
36 CORBA::Boolean success_;
39 #include /**/ "ace/post.h"
40 #endif /* BIG_ONEWAYS_SESSION_CONTROL_H */