A thread specific aterm pool that provides a local interface to the global term pool. Ensures that terms created by this thread are protected during garbage collection.
More...
#include <aterm_pool.h>
A thread specific aterm pool that provides a local interface to the global term pool. Ensures that terms created by this thread are protected during garbage collection.
Definition at line 39 of file aterm_pool.h.
◆ thread_aterm_pool_interface()
atermpp::detail::thread_aterm_pool_interface::thread_aterm_pool_interface |
( |
aterm_pool & |
pool, |
|
|
std::function< void()> |
mark_function, |
|
|
std::function< void()> |
print_function, |
|
|
std::function< std::size_t()> |
protection_set_size_function |
|
) |
| |
|
inline |
◆ ~thread_aterm_pool_interface()
atermpp::detail::thread_aterm_pool_interface::~thread_aterm_pool_interface |
( |
| ) |
|
|
inline |
◆ mark()
void atermpp::detail::thread_aterm_pool_interface::mark |
( |
| ) |
|
|
inline |
Mark the terms created by this thread to prevent them being garbage collected.
Definition at line 46 of file aterm_pool.h.
◆ print_local_performance_statistics()
void atermpp::detail::thread_aterm_pool_interface::print_local_performance_statistics |
( |
| ) |
const |
|
inline |
Print performance statistics for data stored for this thread.
Definition at line 52 of file aterm_pool.h.
◆ protection_set_size()
std::size_t atermpp::detail::thread_aterm_pool_interface::protection_set_size |
( |
| ) |
const |
|
inline |
- Returns
- The total number of terms residing in the pool.
Definition at line 58 of file aterm_pool.h.
◆ unregister()
void atermpp::detail::thread_aterm_pool_interface::unregister |
( |
| ) |
|
|
inline |
◆ m_mark_function
std::function<void()> atermpp::detail::thread_aterm_pool_interface::m_mark_function |
|
private |
◆ m_pool
aterm_pool& atermpp::detail::thread_aterm_pool_interface::m_pool |
|
private |
◆ m_print_function
std::function<void()> atermpp::detail::thread_aterm_pool_interface::m_print_function |
|
private |
◆ m_protection_set_size_function
std::function<std::size_t()> atermpp::detail::thread_aterm_pool_interface::m_protection_set_size_function |
|
private |
◆ m_registered
bool atermpp::detail::thread_aterm_pool_interface::m_registered = true |
|
private |
The documentation for this class was generated from the following file: