• 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: alloc init thread safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alloc init thread safe?


  • Subject: Re: alloc init thread safe?
  • From: David Carlisle <email@hidden>
  • Date: Thu, 8 Mar 2007 12:09:36 -0700

I'm using the default settings for warnings.  I've not disabled them.

if I have an C2_alloc_init method randomly returning a null, and another method randomly returning a NO, that seems to be the same problem, if NO == null.

On Mar 8, 2007, at 11:53 AM, Bill Bumgarner wrote:

On Mar 8, 2007, at 10:43 AM, David Carlisle wrote:
I'm using NSThread detachThreadSelector. Nothing out of the ordinary.

But now I find I have a BOOL method that is rarely and randomly returning NO when the only exit to the method is "return YES;" so I have some strange problem somewhere. It turned out that the method didn't need to be BOOL, but the result is checked anyway.

Does your code compile without warnings (without having enabled "don't warn on anything" in Xcode)?



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: alloc init thread safe?
      • From: Bill Bumgarner <email@hidden>
References: 
 >alloc init thread safe? (From: email@hidden)
 >Re: alloc init thread safe? (From: Chris Suter <email@hidden>)
 >Re: alloc init thread safe? (From: David Carlisle <email@hidden>)
 >Re: alloc init thread safe? (From: "Shawn Erickson" <email@hidden>)
 >Re: alloc init thread safe? (From: David Carlisle <email@hidden>)
 >Re: alloc init thread safe? (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: keycode to unicode in NSEvent
  • Next by Date: Re: keycode to unicode in NSEvent
  • Previous by thread: Re: alloc init thread safe?
  • Next by thread: Re: alloc init thread safe?
  • Index(es):
    • Date
    • Thread