• 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
IOObjectRelease: passing null? threadsafe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IOObjectRelease: passing null? threadsafe?


  • Subject: IOObjectRelease: passing null? threadsafe?
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 20 Oct 2008 18:41:21 -0400
  • Organization: Rogue Research

Hi all,

The docs for IOObjectRelease() are terse.  I'm wondering:

1) How does IOObjectRelease() react to being given null?  Does it do
nothing like free() or crash like CFRelease()?  Yes, I could try, but
I'm looking for an API guarantee one way or the other.

2) Is IOObjectRelease() threadsafe?  Specifically, if I create some
object on the main thread, is it safe to  IOObjectRelease() it from an
Objective-C garbage collector finalize method (which runs on its own thread)?

Thanks,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: IOObjectRelease: passing null? threadsafe?
      • From: Terry Lambert <email@hidden>
  • Prev by Date: Re: lanuchd questions
  • Next by Date: IOKit Kext Dependencies
  • Previous by thread: Re: lanuchd questions
  • Next by thread: Re: IOObjectRelease: passing null? threadsafe?
  • Index(es):
    • Date
    • Thread