---
name: "std::Pthread_alloc_template"
section: "3"
platform: "linux"
package: "libstdc++5-3.3-doc"
version: "1:3.3.6-15"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/std::Pthread_alloc_template"
---

# std::Pthread\_alloc\_template(3)

## NAME

std::Pthread\_alloc\_template -

## SYNOPSIS

### Public Types

enum \
 typedef **Pthread\_alloc\_obj** **\_\_obj**\

### Static Public Member Functions

static char \* **S\_chunk\_alloc** (size\_t size, int &nobjs)\
 static size\_t **S\_round\_up** (size\_t \_\_bytes)\
 static size\_t **S\_freelist\_index** (size\_t \_\_bytes)\
 static void \* **allocate** (size\_t n)\
 static void **deallocate** (void \*\_\_p, size\_t n)\
 static void \* **reallocate** (void \*\_\_p, size\_t \_\_old\_sz, size\_t new\_sz)\

### Static Private Member Functions

static void **S\_destructor** (void \*instance)\
 static **Pthread\_alloc\_per\_thread\_state**\< Max\_size \> \* **S\_new\_per\_thread\_state** ()\
 static **Pthread\_alloc\_per\_thread\_state**\< Max\_size \> \* **S\_get\_per\_thread\_state** ()\

### Static Private Attributes

static pthread\_mutex\_t **S\_chunk\_allocator\_lock**\
 static char \* **S\_start\_free**\
 static char \* **S\_end\_free**\
 static size\_t **S\_heap\_size**\
 static **Pthread\_alloc\_per\_thread\_state**\< Max\_size \> \* **S\_free\_per\_thread\_states**\
 static pthread\_key\_t **S\_key**\
 static bool **S\_key\_initialized**\

### Friends

class **M\_lock**\

### Classes

class **M\_lock**\

## Detailed Description

### template\<size\_t Max\_size = 128\> class std::Pthread\_alloc\_template\< Max\_size \>

Definition at line 112 of file pthread\_allocimpl.h.

## Author

Generated automatically by Doxygen for libstdc++-v3 Source from the source code.
