Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / MT_NoUpcall_Client_Leader / chatter.h
blobe1b5c909ec5222610820372af34cc0b03bbc15a1
1 #if !defined( CHATTER_H)
2 #define CHATTER_H
4 #include "worker.h"
6 #include "ace/Condition_T.h"
7 #include "ace/Mutex.h"
9 class Chatter : public Worker
11 public:
12 Chatter (CORBA::ORB_ptr orb, const ACE_TCHAR *ior, ACE_Condition<ACE_Mutex>& cond);
13 virtual int svc ();
14 int farewell ();
15 long nrequests ();
16 long nreplies ();
17 public:
18 volatile long nrequests_;
19 volatile long nreplies_;
20 private:
21 const ACE_TCHAR* ior_;
22 ACE_Condition<ACE_Mutex>& cond_;
23 TAO_SYNCH_MUTEX request_reply_count_mutex_;
25 #endif /* CHATTER_H */