summaryrefslogtreecommitdiff
path: root/TAO/tests/MT_NoUpcall_Client_Leader/chatter.h
blob: 224dd5a4e2da713e92859f5ed46bd2d799f4d3f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#if !defined( CHATTER_H)
#define CHATTER_H

#include "worker.h"

#include "ace/Condition_T.h"
#include "ace/Mutex.h"

class Chatter : public Worker
{
public:
  Chatter (CORBA::ORB_ptr orb, const ACE_TCHAR *ior, ACE_Condition<ACE_Mutex>& cond);
  virtual int svc ();
  int farewell ();
  long nrequests (void);
  long nreplies (void);
public:
  volatile long nrequests_;
  volatile long nreplies_;
private:
  const ACE_TCHAR* ior_;
  ACE_Condition<ACE_Mutex>& cond_;
  TAO_SYNCH_MUTEX request_reply_count_mutex_;
};
#endif /* CHATTER_H */