4 * @author Carlos O'Ryan <coryan@uci.edu>
7 #ifndef TAO_PERF_RTEC_SEND_TASK_H
8 #define TAO_PERF_RTEC_SEND_TASK_H
12 #include "ace/Synch_Traits.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
20 ACE_END_VERSIONED_NAMESPACE_DECL
25 * @brief Implement a simple ACE_Task to send the events
27 class TAO_RTEC_Perf_Export Send_Task
: public ACE_Task_Base
33 /// This is for compilers that are a PITA complaining that we are
35 virtual int init (int argc
, ACE_TCHAR
*argv
[])
37 return ACE_Task_Base::init (argc
, argv
);
40 void init (int iterations
,
46 ACE_Barrier
*barrier
);
48 /// Run the experiment
51 /// Stop the experiment
65 PortableServer::Servant_var
<Supplier
> supplier_
;
67 ACE_Barrier
*barrier_
;
69 TAO_SYNCH_MUTEX mutex_
;
74 #endif /* TAO_PERF_RTEC_SEND_TASK_H */