#include <ThreadStrategySingleFactoryImpl.h>
Public Member Functions | |
virtual ThreadStrategy * | create (::PortableServer::ThreadPolicyValue value) |
Create a new thread strategy. | |
virtual void | destroy (ThreadStrategy *strategy) |
Cleanup the given strategy instance. |
Definition at line 34 of file ThreadStrategySingleFactoryImpl.h.
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;
}