Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Bug_2953_Regression / Client_Task.h
blobb4b64869a893609fcbfc0a46288d80dc79f55645
2 #ifndef AMI_BUFFERING_CLIENT_TASK_H
3 #define AMI_BUFFERING_CLIENT_TASK_H
4 #include /**/ "ace/pre.h"
6 #include "tao/ORB.h"
7 #include "ace/Task.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 # pragma once
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 /// Implement a Task to run the experiments using multiple threads.
14 class Client_Task : public ACE_Task_Base
16 public:
17 /// Constructor
18 Client_Task (CORBA::ORB_ptr orb);
20 /// Terminate the loop
21 void terminate_loop ();
23 /// Thread entry point
24 int svc ();
26 private:
27 /// Reference to the ORB
28 CORBA::ORB_var orb_;
30 /// A mutex, synchronize access to the termination flag
31 TAO_SYNCH_MUTEX mutex_;
33 /// Termination flag, set to 1 when the client wants this task to
34 /// exit
35 int terminate_loop_;
38 #include /**/ "ace/post.h"
39 #endif /* AMI_BUFFERING_CLIENT_TASK_H */