diff options
Diffstat (limited to 'TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h')
-rw-r--r-- | TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h b/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h new file mode 100644 index 00000000000..bb1bd448284 --- /dev/null +++ b/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h @@ -0,0 +1,65 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file CSD_ThreadPool.h + * + * $Id$ + * + * @author Tim Bradley <bradley_t@ociweb.com> + */ +//============================================================================= + +#ifndef TAO_CSD_THREADPOOL_H +#define TAO_CSD_THREADPOOL_H + +#include /**/ "ace/pre.h" + +#include "tao/CSD_ThreadPool/CSD_TP_Export.h" +#include "tao/Versioned_Namespace.h" +#include "ace/Service_Object.h" +#include "ace/Service_Config.h" + + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +/** + * @class TP_Strategy_Factory + * + * @brief An ACE_Service_Object capable of creating TP_Strategy objects. + * + * TBD - Explain in more detail. + * + */ +class TAO_CSD_TP_Export TAO_CSD_ThreadPool +{ + public: + /// Used to force the initialization of the ORB code. + static int init (void); +}; + +#if defined(ACE_HAS_BROKEN_STATIC_CONSTRUCTORS) + +typedef int (*TAO_CSD_Threadpool) (void); + +static TAO_CSD_Threadpool +TAO_Requires_CSD_Threadpool = + &TAO_CSD_ThreadPool::init; + +#else + +static int +TAO_Requires_CSD_Threadpool = + TAO_CSD_ThreadPool::init (); + +#endif /* ACE_HAS_BROKEN_STATIC_CONSTRUCTORS */ + +TAO_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" + +#endif /* TAO_CSD_THREADPOOL_H */ |