Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool5 / OrbShutdownTask.h
blob6f0bd82675135ad2693304e8db60a8b18e41e6f9
1 // This may look like C, but it's really -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file OrbShutdownTask.h
7 * @author Tim Bradley <bradley_t@ociweb.com>
8 */
9 //=============================================================================
11 #ifndef ORB_SHUTDOWN_TASK_H
12 #define ORB_SHUTDOWN_TASK_H
14 #include "ace/Task.h"
15 #include "tao/ORB.h"
18 class OrbShutdownTask : public ACE_Task_Base
20 public:
22 OrbShutdownTask();
23 virtual ~OrbShutdownTask();
25 void orb(CORBA::ORB_ptr orb);
27 virtual int open(void*);
28 virtual int svc();
29 virtual int close(u_long);
32 private:
34 CORBA::ORB_var orb_;
37 typedef ACE_Singleton<OrbShutdownTask, TAO_SYNCH_MUTEX> TheOrbShutdownTask;
39 #endif