• 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: Releasing static variable & concurrent data protection questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Releasing static variable & concurrent data protection questions...


  • Subject: Re: Releasing static variable & concurrent data protection questions...
  • From: Greg Parker <email@hidden>
  • Date: Mon, 15 Nov 2010 13:09:55 -0800

On Nov 15, 2010, at 1:08 PM, Frederick C. Lee wrote:
> I'll peek at OSAtomic.h
>
> I'm in a learning phase, so I'll expect to 'flutter about' before I can fly.

In that case, do not peek at OSAtomic.h. Avoid OSAtomic.h until you understand the basics of coordinating access to shared data.


> BTW: working with static variables - Is it possible to using 'static' within a 'task'; i.e., releasing it BEFORE the end of the application termination?

No. Use an instance variable.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Releasing static variable & concurrent data protection questions...
      • From: "Frederick C. Lee" <email@hidden>
References: 
 >Releasing static variable & concurrent data protection questions... (From: Frederick C.Lee <email@hidden>)
 >Re: Releasing static variable & concurrent data protection questions... (From: Scott Ribe <email@hidden>)
 >Re: Releasing static variable & concurrent data protection questions... (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Re: Releasing static variable & concurrent data protection questions...
  • Next by Date: Re: Releasing static variable & concurrent data protection questions...
  • Previous by thread: Re: Releasing static variable & concurrent data protection questions...
  • Next by thread: Re: Releasing static variable & concurrent data protection questions...
  • Index(es):
    • Date
    • Thread