• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: thread safety of C++ standard library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thread safety of C++ standard library


  • Subject: Re: thread safety of C++ standard library
  • From: Rush Manbert <email@hidden>
  • Date: Tue, 1 Dec 2009 14:07:02 -0800

On Dec 1, 2009, at 1:36 PM, John Weeks wrote:

> 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.

I think that's your problem. The iterators need to point to the same container. The sort algorithm operates in place.

See this:

http://www.cplusplus.com/reference/algorithm/sort/

- Rush


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >thread safety of C++ standard library (From: John Weeks <email@hidden>)

  • Prev by Date: Re: thread safety of C++ standard library
  • Next by Date: Re: Converting Xcode paths to usable paths
  • Previous by thread: Re: thread safety of C++ standard library
  • Next by thread: agvtool auto generated version source file - where art thou ?
  • Index(es):
    • Date
    • Thread