2 #ifndef AMI_BUFFERING_CLIENT_TASK_H
3 #define AMI_BUFFERING_CLIENT_TASK_H
4 #include /**/ "ace/pre.h"
9 #if !defined (ACE_LACKS_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
18 Client_Task (CORBA::ORB_ptr orb
);
20 /// Terminate the loop
21 void terminate_loop (void);
23 /// Thread entry point
27 /// Reference to the 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
38 #include /**/ "ace/post.h"
39 #endif /* AMI_BUFFERING_CLIENT_TASK_H */