Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / CosEvent / Basic / MT_Disconnect.h
blobdb266b65cc20361d270f1aa3433488ba037f75ef
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file MT_Disconnect.h
6 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
7 */
8 //=============================================================================
11 #ifndef CEC_MT_DISCONNECT_H
12 #define CEC_MT_DISCONNECT_H
14 #include "ace/Task.h"
15 #include "orbsvcs/CosEventChannelAdminC.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 class MTD_Task : public ACE_Task_Base
23 public:
24 /// Create the task...
25 MTD_Task (CosEventChannelAdmin::EventChannel_ptr ec,
26 int use_callbacks);
28 // = Check the ACE_Task_Base documentation.
29 int svc ();
31 /// Run a single iteration of the test
32 void run_iteration ();
34 private:
35 /// The event channel used on the test
36 CosEventChannelAdmin::EventChannel_var event_channel;
38 /// Does the event channel send any callback messages when a client
39 /// diconnects
40 int use_callbacks;
43 #endif /* EC_DISCONNECT_H */