Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Struct template single_consumer
PrevUpHomeNext

Struct template single_consumer

boost::lockfree::single_consumer

Synopsis

// In header: <boost/lockfree/policies.hpp>

template<bool IsSingleConsumer> 
struct single_consumer {
};

Description

Configures a data structure for single-consumer usage.

When set to true, the pop operation does not use a CAS and is wait-free. Only one thread may call pop concurrently.


PrevUpHomeNext