diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-02-18 09:07:14 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-02-18 09:07:14 +0000 |
commit | 685cbd31f0c2b28e550cff1226b6dea3f3150136 (patch) | |
tree | 91ba7fc4584511f31379702bdcf543da966f7f78 /TAO/tao/PortableServer/ThreadStrategyFactory.h | |
parent | 872553f0d5680b863cd6b1948c68ca20a7269e46 (diff) | |
download | ATCD-685cbd31f0c2b28e550cff1226b6dea3f3150136.tar.gz |
ChangeLogTag: Fri Feb 18 17:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/PortableServer/ThreadStrategyFactory.h')
-rw-r--r-- | TAO/tao/PortableServer/ThreadStrategyFactory.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/ThreadStrategyFactory.h b/TAO/tao/PortableServer/ThreadStrategyFactory.h new file mode 100644 index 00000000000..14954e94429 --- /dev/null +++ b/TAO/tao/PortableServer/ThreadStrategyFactory.h @@ -0,0 +1,49 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file ThreadStrategyFactory.h + * + * $Id$ + * + * @author Johnny Willemsen <jwillemsen@remedy.nl> + */ +//============================================================================= + +#ifndef TAO_PORTABLESERVER_THREADPOLICYSTRATEGYFACTORY_H +#define TAO_PORTABLESERVER_THREADPOLICYSTRATEGYFACTORY_H +#include /**/ "ace/pre.h" + +#include "portableserver_export.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/PortableServer/StrategyFactory.h" +#include "tao/PortableServer/ThreadPolicyC.h" + +namespace TAO +{ + namespace Portable_Server + { + class ThreadStrategy; + + class TAO_PortableServer_Export ThreadStrategyFactory + : public virtual StrategyFactory + { + public: + /// Create a new servant retention strategy + virtual ThreadStrategy *create ( + ::PortableServer::ThreadPolicyValue value) = 0; + + /// Cleanup the given strategy instance + virtual void destroy ( + ThreadStrategy *strategy + ACE_ENV_ARG_DECL) = 0; + }; + } +} + +#include /**/ "ace/post.h" +#endif /* TAO_PORTABLESERVER_THREADPOLICYSTRATEGYFACTORY_H */ |