Boost logo

Boost :

Subject: Re: [boost] Boost.Xint is not thread-safe
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2011-06-19 18:08:11


On Sun, 19 Jun 2011 12:29:41 -0500
Bryce Lelbach <blelbach_at_[hidden]> wrote:

> The proposed Boost.Xint does not fulfill the thread-safety promises
> that it makes. The library uses a custom allocator (allocator_t),
> which uses global variables and does not protect them with a
> synchronization primitive. [...]

What global variables are those? The only non-local variables I see
from a quick perusal of allocator_t are fixed_length and
magnitude_datasize (allocator_t static consts) and minimum_digits (a
global const).

> Can the author of this library please make the custom allocation
> strategy optional? [...] I think the better solution here is to not
> tie Boost.Xint to a particular memory allocation scheme.

If I work on it any further (still undecided), that's already on the
to-do list.

-- 
Chad Nelson
Oak Circle Software, Inc.
*
*
*



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk