ReactOS  0.4.14-dev-77-gd9e7c48
allocators.cpp File Reference
#include "stlport_prefix.h"
#include <memory>
#include <stl/_threads.h>
#include "lock_free_slist.h"
Include dependency graph for allocators.cpp:

Go to the source code of this file.

Classes

class  _Node_Alloc_Lock
 
struct  _Node_alloc_obj
 
class  __node_alloc_impl
 

Macros

#define _S_FREELIST_INDEX(__bytes)   ((__bytes - size_t(1)) >> (int)_ALIGN_SHIFT)
 
#define _STLP_NFREELISTS   16
 
#define _STLP_OFFSET   0
 

Typedefs

typedef long __add_atomic_t
 
typedef unsigned long __uadd_atomic_t
 

Enumerations

enum  { _ALIGN = 2 * sizeof(void*), _ALIGN_SHIFT = 2 + sizeof(void*) / 4 }
 

Functions

char__stlp_new_chunk (size_t __bytes)
 
void __stlp_delete_chunck (void *__p)
 

Variables

static _STLP_BEGIN_NAMESPACE __oom_handler_type __oom_handler = __STATIC_CAST(__oom_handler_type, 0)
 

Macro Definition Documentation

◆ _S_FREELIST_INDEX

#define _S_FREELIST_INDEX (   __bytes)    ((__bytes - size_t(1)) >> (int)_ALIGN_SHIFT)

Definition at line 120 of file allocators.cpp.

◆ _STLP_NFREELISTS

#define _STLP_NFREELISTS   16

Definition at line 180 of file allocators.cpp.

◆ _STLP_OFFSET

#define _STLP_OFFSET   0

Definition at line 358 of file allocators.cpp.

Typedef Documentation

◆ __add_atomic_t

Definition at line 88 of file allocators.cpp.

◆ __uadd_atomic_t

typedef unsigned long __uadd_atomic_t

Definition at line 89 of file allocators.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
_ALIGN 
_ALIGN_SHIFT 

Definition at line 117 of file allocators.cpp.

117 { _ALIGN = 2 * sizeof(void*), _ALIGN_SHIFT = 2 + sizeof(void*) / 4 };

Function Documentation

◆ __stlp_delete_chunck()

void __stlp_delete_chunck ( void __p)
inline

Definition at line 80 of file allocators.cpp.

void _STLP_CALL __stl_delete(void *__p)
Definition: _new.h:135

◆ __stlp_new_chunk()

char* __stlp_new_chunk ( size_t  __bytes)
inline

Definition at line 78 of file allocators.cpp.

79 { return __STATIC_CAST(char*, _STLP_STD::__stl_new(__bytes)); }
#define __STATIC_CAST(__x, __y)
Definition: features.h:585
_STLP_BEGIN_NAMESPACE void *_STLP_CALL __stl_new(size_t __n)
Definition: _new.h:134

Referenced by __node_alloc_impl::_S_chunk_alloc().

Variable Documentation

◆ __oom_handler