Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template single_producer

boost::lockfree::single_producer

Synopsis

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

template<bool IsSingleProducer> 
struct single_producer {
};

Description

Configures a data structure for single-producer usage.

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


PrevUpHomeNext