• 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: sysctlbyname( "hw.availcpu" ) fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sysctlbyname( "hw.availcpu" ) fails


  • Subject: Re: sysctlbyname( "hw.availcpu" ) fails
  • From: Eric Schlegel <email@hidden>
  • Date: Fri, 29 Jun 2007 14:39:42 -0700


On Jun 29, 2007, at 2:34 PM, Steve Checkoway wrote:

Is Gestalt failing to give you the info you need in some way?

No, not at all. I thought that using Gestalt was discouraged in some way.

Not as far as I know. It's still fully supported and will be available in 64-bit Leopard too. If what you have is already working, I think you should just continue to use it.


Parts of it have been deprecated such as NewGestalt and ReplaceGestalt.

That is true; those particular APIs were rarely used and didn't really make sense to continue recommending.


Then there are other indications like <http://developer.apple.com/samplecode/CPUGestalt/index.html > which has an interesting warning.

I think that's mostly because we never recommend that you use the specific CPU type to make decisions about code paths. It doesn't matter whether you're getting the cputype from Gestalt or sysctlbyname, it's still better to use CPU capabilities rather than CPU types.


-eric

_______________________________________________
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: sysctlbyname( "hw.availcpu" ) fails
      • From: Terry Lambert <email@hidden>
    • Re: sysctlbyname( "hw.availcpu" ) fails
      • From: Steve Checkoway <email@hidden>
References: 
 >Re: sysctlbyname( "hw.availcpu" ) fails (From: Michael Smith <email@hidden>)
 >Re: sysctlbyname( "hw.availcpu" ) fails (From: Steve Checkoway <email@hidden>)
 >Re: sysctlbyname( "hw.availcpu" ) fails (From: Eric Schlegel <email@hidden>)
 >Re: sysctlbyname( "hw.availcpu" ) fails (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: sysctlbyname( "hw.availcpu" ) fails
  • Next by Date: Re: sysctlbyname( "hw.availcpu" ) fails
  • Previous by thread: Re: sysctlbyname( "hw.availcpu" ) fails
  • Next by thread: Re: sysctlbyname( "hw.availcpu" ) fails
  • Index(es):
    • Date
    • Thread