diff options
Diffstat (limited to 'TAO/tests/AMI_Buffering/Client_Task.h')
-rw-r--r-- | TAO/tests/AMI_Buffering/Client_Task.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TAO/tests/AMI_Buffering/Client_Task.h b/TAO/tests/AMI_Buffering/Client_Task.h index 372fbc96cfb..1e41e68bdc9 100644 --- a/TAO/tests/AMI_Buffering/Client_Task.h +++ b/TAO/tests/AMI_Buffering/Client_Task.h @@ -20,12 +20,22 @@ public: /// Constructor Client_Task (CORBA::ORB_ptr orb); + /// Terminate the loop + void terminate_loop (void); + /// Thread entry point int svc (void); private: /// Reference to the ORB CORBA::ORB_var orb_; + + /// A mutex, synchronize access to the termination flag + TAO_SYNCH_MUTEX mutex_; + + /// Termination flag, set to 1 when the client wants this task to + /// exit + int terminate_loop_; }; #include "ace/post.h" |