Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::dfs_stack_detail Namespace Reference

Classes

struct  Room
 Room of a destroyed stack, kept for the next stack of the thread. More...
 
struct  Room_Keeper
 Opens the room of the thread, and frees it when the thread ends, but for the thread of main() with glibc: then the process ends, which frees it, and freeing a room of 64 KiB or more would make glibc merge the small free blocks, which at the end of the process are often many. More...
 

Functions

void poison (const void *p, size_t bytes) noexcept
 
void unpoison (const void *p, size_t bytes) noexcept
 
void free_room (void *r, size_t bytes) noexcept
 
Room & kept_room () noexcept
 
bool in_main_thread () noexcept
 
Room & open_room () noexcept
 

Variables

constexpr size_t Kept_Bytes = 1024 * 1024
 
constexpr bool Poisoned = false
 

Function Documentation

◆ free_room()

void Aleph::dfs_stack_detail::free_room ( void *  r,
size_t  bytes 
)
inlinenoexcept

◆ in_main_thread()

bool Aleph::dfs_stack_detail::in_main_thread ( )
inlinenoexcept

Definition at line 168 of file tpl_dfs_stack.H.

Referenced by Aleph::dfs_stack_detail::Room_Keeper::~Room_Keeper(), and TEST().

◆ kept_room()

◆ open_room()

Room & Aleph::dfs_stack_detail::open_room ( )
inlinenoexcept

Definition at line 206 of file tpl_dfs_stack.H.

References kept_room().

Referenced by Aleph::Dfs_Stack< T >::grow().

◆ poison()

void Aleph::dfs_stack_detail::poison ( const void *  p,
size_t  bytes 
)
inlinenoexcept

◆ unpoison()

void Aleph::dfs_stack_detail::unpoison ( const void *  p,
size_t  bytes 
)
inlinenoexcept

Definition at line 131 of file tpl_dfs_stack.H.

Referenced by free_room(), and Aleph::Dfs_Stack< T >::push_in_poisoned_room().

Variable Documentation

◆ Kept_Bytes

constexpr size_t Aleph::dfs_stack_detail::Kept_Bytes = 1024 * 1024
inlineconstexpr

Definition at line 111 of file tpl_dfs_stack.H.

◆ Poisoned

constexpr bool Aleph::dfs_stack_detail::Poisoned = false
inlineconstexpr