Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / MT_NoUpcall_Client_Leader / chatter.h
bloba9e31f4e0f5cfdae17a6d4672c8dec20cba67bdc
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 (void);
14 int farewell ();
15 long nrequests (void);
16 long nreplies (void);
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 */