21 Mar
2003
21 Mar
'03
3:22 p.m.
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