TAO::Portable_Server::ThreadStrategySingleFactoryImpl Class Reference

#include <ThreadStrategySingleFactoryImpl.h>

Inheritance diagram for TAO::Portable_Server::ThreadStrategySingleFactoryImpl:

Inheritance graph
[legend]
Collaboration diagram for TAO::Portable_Server::ThreadStrategySingleFactoryImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ThreadStrategycreate (::PortableServer::ThreadPolicyValue value)
 Create a new thread strategy.
virtual void destroy (ThreadStrategy *strategy)
 Cleanup the given strategy instance.

Detailed Description

Definition at line 34 of file ThreadStrategySingleFactoryImpl.h.


Member Function Documentation

ThreadStrategy * TAO::Portable_Server::ThreadStrategySingleFactoryImpl::create ( ::PortableServer::ThreadPolicyValue  value  )  [virtual]

Create a new thread strategy.

Implements TAO::Portable_Server::ThreadStrategyFactory.

Definition at line 24 of file ThreadStrategySingleFactoryImpl.cpp.

References ACE_ERROR, ACE_NEW_RETURN, and LM_ERROR.

00026     {
00027       ThreadStrategy* strategy = 0;
00028 
00029       switch (value)
00030       {
00031         case ::PortableServer::SINGLE_THREAD_MODEL :
00032         {
00033           ACE_NEW_RETURN (strategy, ThreadStrategySingle, 0);
00034           break;
00035         }
00036         case ::PortableServer::ORB_CTRL_MODEL :
00037         {
00038           ACE_ERROR ((LM_ERROR, "Incorrect type in ThreadStrategySingleFactoryImpl"));
00039           break;
00040         }
00041       }
00042 
00043       return strategy;
00044     }

void TAO::Portable_Server::ThreadStrategySingleFactoryImpl::destroy ( ThreadStrategy strategy  )  [virtual]

Cleanup the given strategy instance.

Implements TAO::Portable_Server::ThreadStrategyFactory.

Definition at line 47 of file ThreadStrategySingleFactoryImpl.cpp.

References TAO::Portable_Server::ThreadStrategy::strategy_cleanup().

00048     {
00049       strategy->strategy_cleanup ();
00050 
00051       delete strategy;
00052     }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:41:54 2010 for TAO_PortableServer by  doxygen 1.4.7