• 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: Low-level equivalent of NSLock?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Low-level equivalent of NSLock?


  • Subject: Re: Low-level equivalent of NSLock?
  • From: Lindsey Spratt <email@hidden>
  • Date: Thu, 14 Nov 2002 08:25:38 -0600

On Wednesday, November 13, 2002, at 08:12 PM, Pierre-Olivier Latour <email@hidden> wrote:

Hi,

I'd like to know the low-level equivalent of the functions implemented by
NSLock. I'm looking for the exact same set of functions but without the
Cocoa overhead (like NSDate to specify a max waiting time).

I think it's a wrapper for pthread_mutex_* (and NSConditionalLock is a wrapper for pthread_cond_*).

Have you done any measurements of NSLock performance (especially in the context of your app) to determine that it's a performance problem? It doesn't seem to do all that much more than call pthread.

Lindsey Spratt
http://homepage.mac.com/lspratt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Low-level equivalent of NSLock?
      • From: Pierre-Olivier Latour <email@hidden>
  • Prev by Date: Re: cocoa-dev digest, Vol 2 #1506 - 16 msgs
  • Next by Date: Interface/usability question
  • Previous by thread: Re: Low-level equivalent of NSLock?
  • Next by thread: Re: Low-level equivalent of NSLock?
  • Index(es):
    • Date
    • Thread