|
Boost Users : |
From: Russell Hind (yg-boost-users_at_[hidden])
Date: 2003-03-21 10:22:15
Russ Wood wrote:
>
> I wonder why it was decided to have locking on directory iterators at
> all, seems a bit low level?
>
AFAIK, there isn't explicit locking on directory iterators, but part of
them uses a shared_ptr which if multi-threading is turned on, will mutex
the increasing of the reference count. Some code that does this is
inbuilt into the library, some gets inlines in your code, therefore
differences can occour. Another way around this is to link with the
filesystem source .cpps directly. That way they are built with your
current compiler setttings
Cheers
Russell
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