casacore::Allocator_private Class Reference

#include <Allocator.h>

List of all members.

Classes

struct  AllocSpec
 Allocator specifier. More...
struct  BulkAllocator
struct  BulkAllocatorImpl
class  BulkAllocatorInitializer

Static Private Member Functions

template<typename Allocator >
static BulkAllocator< typename
Allocator::value_type > * 
get_allocator ()
template<typename Allocator >
static BulkAllocatorImpl
< Allocator > * 
get_allocator_raw ()

Friends

class AbstractAllocator
class BaseAllocator
class Array
class Block

Detailed Description

Definition at line 258 of file Allocator.h.


Member Function Documentation

template<typename Allocator >
static BulkAllocator<typename Allocator::value_type>* casacore::Allocator_private::get_allocator (  )  [inline, static, private]
template<typename Allocator >
static BulkAllocatorImpl<Allocator>* casacore::Allocator_private::get_allocator_raw (  )  [inline, static, private]

Probably this method is called from BulkAllocatorInitializer<Allocator> first while static initialization and other threads are not started yet.

Use construct below to avoid https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42032

new (u.alloc_obj) BulkAllocatorImpl<Allocator>(); // this instance will never be destructed.

Definition at line 360 of file Allocator.h.


Friends And Related Function Documentation

friend class AbstractAllocator [friend]

Definition at line 259 of file Allocator.h.

friend class Array [friend]

Definition at line 261 of file Allocator.h.

friend class BaseAllocator [friend]

Definition at line 260 of file Allocator.h.

friend class Block [friend]

Definition at line 262 of file Allocator.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1