#include <ThreadStrategySingleFactoryImpl.h>
Inheritance diagram for TAO::Portable_Server::ThreadStrategySingleFactoryImpl:


Public Member Functions | |
| virtual ThreadStrategy * | create (::PortableServer::ThreadPolicyValue value) |
| Create a new thread strategy. | |
| virtual void | destroy (ThreadStrategy *strategy) |
| Cleanup the given strategy instance. | |
|
|
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 }
|
|
|
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 }
|
1.3.6