Public Member Functions

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.

    {
      ThreadStrategy* strategy = 0;

      switch (value)
      {
        case ::PortableServer::SINGLE_THREAD_MODEL :
        {
          ACE_NEW_RETURN (strategy, ThreadStrategySingle, 0);
          break;
        }
        case ::PortableServer::ORB_CTRL_MODEL :
        {
          ACE_ERROR ((LM_ERROR, "Incorrect type in ThreadStrategySingleFactoryImpl"));
          break;
        }
      }

      return strategy;
    }

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.

    {
      strategy->strategy_cleanup ();

      delete strategy;
    }


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines