summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Event/Memory_Pools.cpp
blob: 9c5f0eabdf96358c68eb602a4b8a2e23f766eb92 (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
// $Id$

#include "Memory_Pools.h"
#include "Event_Channel.h"

#if !defined (__ACE_INLINE__)
#include "Memory_Pools.i"
#endif /* __ACE_INLINE__ */

//ACE_TSS<ACE_ES_Dispatch_Request_Allocator> ACE_ES_Memory_Pools::Dispatch_Request_;
//ACE_TSS<ACE_ES_Event_Container_Allocator> ACE_ES_Memory_Pools::Event_Container_;
//ACE_TSS<ACE_ES_Event_Allocator> ACE_ES_Memory_Pools::Event_;

// ************************************************************

int
ACE_ES_Memory_Pools::thr_init (void)
{
  // Allocate the memory pool for this thread.
  //Event_Container_.ts_object ();
  //Dispatch_Request_.ts_object ();
  //Event_.ts_object ();
  return 0;
}

// ************************************************************

#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
// For ACE_ES_Memory_Pools.
template class ACE_Singleton<ACE_ES_Dispatch_Request_Allocator,ACE_Null_Mutex>;
template class ACE_Singleton<ACE_ES_Event_Container_Allocator,ACE_Null_Mutex>;
template class ACE_Singleton<ACE_ES_Event_Allocator,ACE_Null_Mutex>;
// template class ACE_TSS<ACE_ES_Event_Container_Allocator>;
// template class ACE_TSS<ACE_ES_Dispatch_Request_Allocator>;
// template class ACE_TSS<ACE_Malloc<ACE_LOCAL_MEMORY_POOL, ACE_MEMORY_POOL_MUTEX> >;
#elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Singleton<ACE_ES_Dispatch_Request_Allocator,ACE_Null_Mutex>
#pragma instantiate ACE_Singleton<ACE_ES_Event_Container_Allocator,ACE_Null_Mutex>
#pragma instantiate ACE_Singleton<ACE_ES_Event_Allocator,ACE_Null_Mutex>
// #pragma instantiate ACE_TSS<ACE_ES_Event_Container_Allocator>
// #pragma instantiate ACE_TSS<ACE_ES_Dispatch_Request_Allocator>
// #pragma instantiate ACE_TSS<ACE_Malloc<ACE_Local_Memory_Pool, ACE_Local_Memory_Pool_Options, ACE_MEMORY_POOL_MUTEX> >
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */