Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::_Pthread_alloc_template Class Template Reference

#include <pthread_allocimpl.h>

Collaboration diagram for std::_Pthread_alloc_template:

Collaboration graph
[legend]
List of all members.

Public Types

typedef _Pthread_alloc_obj __obj
enum  { _S_ALIGN = __STL_DATA_ALIGNMENT }

Static Public Methods

char* _S_chunk_alloc (size_t __size, int &__nobjs)
size_t _S_round_up (size_t __bytes)
size_t _S_freelist_index (size_t __bytes)
void* allocate (size_t __n)
void deallocate (void *__p, size_t __n)
void* reallocate (void *__p, size_t __old_sz, size_t __new_sz)

Static Private Methods

void _S_destructor (void *instance)
_Pthread_alloc_per_thread_state<
_Max_size>* 
_S_new_per_thread_state ()
_Pthread_alloc_per_thread_state<
_Max_size>* 
_S_get_per_thread_state ()

Static Private Attributes

pthread_mutex_t _S_chunk_allocator_lock
char* _S_start_free
char* _S_end_free
size_t _S_heap_size
_Pthread_alloc_per_thread_state<
_Max_size>* 
_S_free_per_thread_states
pthread_key_t _S_key
bool _S_key_initialized

Friends

class  _M_lock

template<size_t _Max_size = 128> class std::_Pthread_alloc_template


Member Typedef Documentation

template<size_t _Max_size = 128>
typedef _Pthread_alloc_obj std::_Pthread_alloc_template<_Max_size>::__obj
 

Definition at line 82 of file pthread_allocimpl.h.


Member Enumeration Documentation

template<size_t _Max_size = 128>
anonymous enum
 

Enumeration values:
_S_ALIGN  

Definition at line 88 of file pthread_allocimpl.h.


Member Function Documentation

template<size_t _Max_size = 128>
char* std::_Pthread_alloc_template<_Max_size>::_S_chunk_alloc ( size_t __size,
int & __nobjs ) [static]
 

template<size_t _Max_size = 128>
void std::_Pthread_alloc_template<_Max_size>::_S_destructor ( void * instance ) [static, private]
 

template<size_t _Max_size = 128>
size_t std::_Pthread_alloc_template<_Max_size>::_S_freelist_index ( size_t __bytes ) [inline, static]
 

Definition at line 93 of file pthread_allocimpl.h.

Referenced by allocate(), and deallocate().

template<size_t _Max_size = 128>
_Pthread_alloc_per_thread_state<_Max_size>* std::_Pthread_alloc_template<_Max_size>::_S_get_per_thread_state ( ) [static, private]
 

Referenced by allocate(), and deallocate().

template<size_t _Max_size = 128>
_Pthread_alloc_per_thread_state<_Max_size>* std::_Pthread_alloc_template<_Max_size>::_S_new_per_thread_state ( ) [static, private]
 

template<size_t _Max_size = 128>
size_t std::_Pthread_alloc_template<_Max_size>::_S_round_up ( size_t __bytes ) [inline, static]
 

Definition at line 90 of file pthread_allocimpl.h.

Referenced by allocate().

template<size_t _Max_size = 128>
void* std::_Pthread_alloc_template<_Max_size>::allocate ( size_t __n ) [inline, static]
 

Definition at line 128 of file pthread_allocimpl.h.

template<size_t _Max_size = 128>
void std::_Pthread_alloc_template<_Max_size>::deallocate ( void * __p,
size_t __n ) [inline, static]
 

Definition at line 153 of file pthread_allocimpl.h.

template<size_t _Max_size = 128>
void* std::_Pthread_alloc_template<_Max_size>::reallocate ( void * __p,
size_t __old_sz,
size_t __new_sz ) [static]
 


Friends And Related Function Documentation

template<size_t _Max_size = 128>
friend class _M_lock [friend]
 

Definition at line 118 of file pthread_allocimpl.h.


Member Data Documentation

template<size_t _Max_size = 128>
pthread_mutex_t std::_Pthread_alloc_template<_Max_size>::_S_chunk_allocator_lock [static, private]
 

Definition at line 100 of file pthread_allocimpl.h.

template<size_t _Max_size = 128>
char* std::_Pthread_alloc_template<_Max_size>::_S_end_free [static, private]
 

Definition at line 102 of file pthread_allocimpl.h.

template<size_t _Max_size = 128>
_Pthread_alloc_per_thread_state<_Max_size>* std::_Pthread_alloc_template<_Max_size>::_S_free_per_thread_states [static, private]
 

Definition at line 104 of file pthread_allocimpl.h.

template<size_t _Max_size = 128>
size_t std::_Pthread_alloc_template<_Max_size>::_S_heap_size [static, private]
 

Definition at line 103 of file pthread_allocimpl.h.

template<size_t _Max_size = 128>
pthread_key_t std::_Pthread_alloc_template<_Max_size>::_S_key [static, private]
 

Definition at line 105 of file pthread_allocimpl.h.

template<size_t _Max_size = 128>
bool std::_Pthread_alloc_template<_Max_size>::_S_key_initialized [static, private]
 

Definition at line 106 of file pthread_allocimpl.h.

template<size_t _Max_size = 128>
char* std::_Pthread_alloc_template<_Max_size>::_S_start_free [static, private]
 

Definition at line 101 of file pthread_allocimpl.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:29:53 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001