summaryrefslogtreecommitdiff
path: root/TAO/tao/CSD_ThreadPool/CSD_ThreadPool.h
blob: bb1bd448284ceda64c5d69f17d3ca5a9d1b54c93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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 */