• 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: Using Darwin headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Darwin headers


  • Subject: Re: Using Darwin headers
  • From: Vince DeMarco <email@hidden>
  • Date: Sat, 22 Jun 2002 18:24:57 -0700

On Saturday, June 22, 2002, at 05:44 AM, Chris Purcell wrote:

Rats. Can you suggest the best way to code atomic operations in a user space application?


pthreads

look at the code in /usr/include/pthreads.h

there are mutexes etc.. there

Or if this is a Cocoa application use NSLock.

vince

Kritter out

Does anyone know how to use Darwin headers in a Cocoa app?

Specifically, I want to use OSAtomicOperations.h functions, but can't persuade the linker.

You can't use KERNEL headers in a USER SPACE application.

-- Finlay
_______________________________________________
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.
_______________________________________________
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: Using Darwin headers
      • From: Chris Purcell <email@hidden>
References: 
 >Re: Using Darwin headers (From: Chris Purcell <email@hidden>)

  • Prev by Date: Re: NSLog() what is it?
  • Next by Date: Clicking through windows
  • Previous by thread: Re: Using Darwin headers
  • Next by thread: Re: Using Darwin headers
  • Index(es):
    • Date
    • Thread