2 #ifndef BIG_ONEWAYS_SESSION_CONTROL_H
3 #define BIG_ONEWAYS_SESSION_CONTROL_H
4 #include /**/ "ace/pre.h"
8 /// Implement the Test::Session_Control interface
10 : public virtual POA_Test::Session_Control
15 * @param session_count Number of session objects in the experiment.
17 Session_Control (CORBA::ULong session_count
);
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
);
29 /// Synchronize the internal state
30 TAO_SYNCH_MUTEX mutex_
;
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 */