thread safety of C++ standard library
thread safety of C++ standard library
- Subject: thread safety of C++ standard library
- From: John Weeks <email@hidden>
- Date: Tue, 1 Dec 2009 13:36:19 -0800
In particular, is std::sort thread-safe when working with distinct
containers? That is, std::sort(iterator, iterator, predicate) where the
iterators point to different containers.
Xcode 3.12, 10.4 SDK, gcc 4.0
std::sort needs write access to the containers, but they are different
containers.
I seem to be getting a deadlock in the iterator allocators. The problem is
much more likely in a debug build. I see in the iterator class something
that looks like a linked list of iterators. Is that my problem?
And where would I find this information myself?
Thank you!
Regards,
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
email email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden