Boost logo

Boost Users :

Subject: Re: [Boost-users] [variant] variant member function apply_visitor( visitor ) thread-safe?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-08 10:48:20


AMDG

Hicham Mouline wrote:
> Is the apply_visitor() method per se thread-safe, meaning,
> if i have variant object, and i visit it from different threads at same time,
> and if i assume the visitor i write is thread-safe, my question is about
> the machinery of apply_visitor() itself, is it thread-safe?
>

The apply_visitor function itself does not modify the
variant in any way, such usage ought to be thread-safe.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net