• 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
MPProcessing in Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MPProcessing in Lion


  • Subject: MPProcessing in Lion
  • From: "McLaughlin, Michael P." <email@hidden>
  • Date: Mon, 14 May 2012 12:34:14 +0000
  • Thread-topic: MPProcessing in Lion

This past weekend I tried compiling my Snow Leopard Cocoa app in Lion (Xcode 4.3) just to make sure all was OK.  I got two warnings stating that MPProcessorsScheduled and MPCreateCriticalRegion were deprecated in Lion but the relevant Lion docs did not say what they should to be replaced with.

I use MPProcessorsScheduled to create an equal number of parallel threads (for a long computation) and MPCreateCriticalRegion to serialize the core of a pseudo-random-number generator.

Two questions:

  1.  What should I replace these with?
  2.  Will that replacement also work in Snow Leopard and, if not, what if-criterion should I use to make the code work in both places?

Thanks very much for any help.

--
Michael P. McLaughlin
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: MPProcessing in Lion
      • From: "Glenn L. Austin" <email@hidden>
    • Re: MPProcessing in Lion
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Bottom-edge constraint not enforced in IB but is in runtime?
  • Next by Date: Re: MPProcessing in Lion
  • Previous by thread: Re: Bottom-edge constraint not enforced in IB but is in runtime?
  • Next by thread: Re: MPProcessing in Lion
  • Index(es):
    • Date
    • Thread