Documentation of memory

( foonathan/memory)

is_thread_safe_allocator< joint_allocator > Struct Template Reference

Detailed Description

template<>
struct foonathan::memory::is_thread_safe_allocator< joint_allocator >

Specialization of is_thread_safe_allocator to mark joint_allocator as thread safe.

This is an optimization to get rid of the mutex in allocator_reference, as joint allocator must not be shared between threads.

Note
The allocator is not thread safe, it just must not be shared.