boost::xint::options::copy_on_write Struct Reference

Allows faster operations, at a price. More...


Detailed Description

Allows faster operations, at a price.

This is the opposite of the threadsafe option.

By default, the library ensures that each object has its own unique storage before returning it. If this option is used, identical objects are allowed to share storage using a copy-on-write design, potentially increasing the speed of the library, but making it unsafe for multithreaded use (with some exceptions). The library allows copy-on-write for internal functions regardless of this parameter, which is safe because the internal functions only use one thread at a time.

Definition at line 127 of file options.hpp.


The documentation for this struct was generated from the following file:

© Copyright Chad Nelson, 2010-2011. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)