Simple wrapper around boost lockfree queue to keep track of the reserved memory Boost's implementation of reserve always increases the capacity by the specified size. More...
#include <pal_statistics_utils.h>
Public Types | |
typedef boost::lockfree::queue< T > | BaseType |
Public Member Functions | |
bool | bounded_push (T const &t) |
LockFreeQueue () | |
template<typename U > | |
bool | pop (U &ret) |
void | set_capacity (typename BaseType::size_type n) |
Private Attributes | |
std::atomic< size_t > | reserved_size |
Simple wrapper around boost lockfree queue to keep track of the reserved memory Boost's implementation of reserve always increases the capacity by the specified size.
Definition at line 54 of file pal_statistics_utils.h.
typedef boost::lockfree::queue<T> pal_statistics::LockFreeQueue< T >::BaseType |
Definition at line 57 of file pal_statistics_utils.h.
|
inline |
Definition at line 59 of file pal_statistics_utils.h.
|
inline |
Definition at line 72 of file pal_statistics_utils.h.
|
inline |
Definition at line 78 of file pal_statistics_utils.h.
|
inline |
Definition at line 62 of file pal_statistics_utils.h.
|
private |
Definition at line 84 of file pal_statistics_utils.h.