memory
Typedefs | Classes | Functions
threading.hpp File Reference

Detailed Description

The mutex types.

Typedefs

template<class RawAllocator , class Mutex >
using mutex_for = typename std::conditional< is_thread_safe_allocator< RawAllocator >::value, no_mutex, Mutex >::type
 

Classes

struct  no_mutex
 A dummy Mutex class that does not lock anything. More...
 
struct  is_thread_safe_allocator< RawAllocator >
 Specifies whether or not a RawAllocator is thread safe as-is. More...
 

Functions

template<class Alloc , class Mutex >
locked_allocator< Alloc, Mutex > lock_allocator (Alloc &a, Mutex &m)