TAO_IDL: Fix Memory Leaks Caused By Annotations
[ACE_TAO.git] / TAO / tests / LongUpcalls / Manager.h
blobde0b40dd319073920bce7991b4cc064bfd634483
2 #ifndef LONGUPCALLS_MANAGER_H
3 #define LONGUPCALLS_MANAGER_H
5 #include "TestS.h"
6 #include "ace/Task.h"
8 class Manager
9 : public virtual POA_Test::Manager
11 public:
12 Manager (CORBA::ORB_ptr orb);
13 // Constructor
15 // = The skeleton methods
16 virtual void start_workers (CORBA::Short worker_count,
17 CORBA::Long milliseconds,
18 Test::Controller_ptr controller);
19 virtual void shutdown (void);
21 private:
22 CORBA::ORB_var orb_;
23 // The ORB, to shutdown
26 // ****************************************************************
28 class Worker : public ACE_Task_Base
30 public:
31 Worker (ACE_Thread_Manager *thr_mgr,
32 Test::Controller_ptr controller,
33 CORBA::Long milliseconds);
35 virtual int svc (void);
36 // The service method
38 private:
39 Test::Controller_var controller_;
40 // The controller pointer
42 CORBA::Long milliseconds_;
43 // The number of milliseconds.
46 #endif /* LONGUPCALLS_MANAGER_H */