Boost logo

Boost :

From: Iain Hanson (Iain.Hanson_at_[hidden])
Date: 2005-03-08 09:45:48


On Tue, 2005-03-08 at 06:20 -0700, Jeff Garland wrote:
> On Tue, 8 Mar 2005 14:48:00 +0200, Peter Dimov wrote
>

> Well I don't think just calling the _r function is enough to ensure the thread
> safety of this code. I believe I would have to insert a lock in the date-time
> code to make this assurance.
>

Yes it is. the _r versions require a user supplied buffer. So each
caller supplying there own buffer is what makes them re-entrant.

/ikh




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