• 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: Nathan Day <email@hidden>
  • Date: Thu, 14 Nov 2002 12:48:22 +1030

You could look at pthread_mutex_init, pthread_mutex_destroy, pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock. Defined in the file 'pthread.h'. There are some issues with using posix thread calls within cocoa, I thinks it's mainly to do with creating threads, but you might want to check it out.

On Thursday, November 14, 2002, at 07:32 AM, Pierre-Olivier Latour 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've seen some stuff in /usr/include/ but it seems overcomplicated

Thanks.


_____________________________________________________________

Pierre-Olivier Latour email@hidden
Palo Alto, USA http://www.pol-online.net
_______________________________________________
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.

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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>
References: 
 >Low-level equivalent of NSLock? (From: Pierre-Olivier Latour <email@hidden>)

  • Prev by Date: Re: Scrollbar
  • Next by Date: NSBitmapImageRep and Inconsistent set of values
  • Previous by thread: Low-level equivalent of NSLock?
  • Next by thread: Re: Low-level equivalent of NSLock?
  • Index(es):
    • Date
    • Thread